public ActionResult CustNew() { CustViewModel model = new CustViewModel(); model.DisplayMode = "NewOnly"; return(View("CustIndex", model)); }
public ActionResult CustIndex(CustViewModel model) { //Result res = TerminalContext.CustGet(id); if (!res.Succeed) { ViewBag.Result = res.Desc; } return(View(res.Data)); }