Master.CanYinWu.Web/Controllers/CustomerController.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Master.CanYinWu.DAL;
using Master.CanYinWu.DAL.Customer;
namespace Master.CanYinWu.Web.Controllers
{
public class CustomerController : Controller
{
CustomerDAL customerDal = new CustomerDAL();
// GET: Customer
public ActionResult NoCheckCustomerList()
{
return View();
}
public ActionResult CheckPassCustomerList()
{
return View();
}
public async Task<ActionResult> CheckPassEdit(int id)
{
var model = await customerDal.GetModelAsync(id);
if (model == null)
{
return HttpNotFound();
}
return View(model);
}
public async Task<ActionResult> NoCheckEdit(int id)
{
var model = await customerDal.GetModelAsync(id);
if (model == null)
{
return HttpNotFound();
}
return View(model);
}
[HttpGet]
public async Task<JsonResult> GetMarketListAsync()
{
return Json(await new AdminDAL().GetMarketListAsync(),JsonRequestBehavior.AllowGet);
}
[HttpPost]
public async Task<string> Edit(Entity.Customer model,string objCategoryId)
{
try
{
if (model == null)
{
throw new ArgumentNullException(nameof(model));
}
string bigCategoryId = "", smallCategoryId = "";
if (!string.IsNullOrEmpty(objCategoryId))
{
model.AllCategoryId = objCategoryId;
string[] bigCategoryGroup = objCategoryId.Split(',');
后面还有 86 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
