Exemplo n.º 1
0
 public ActionResult Create(FOODDO.Models.Customer Model)
 {
     if (Model.Save() == 0)
     {
         return(Json(new { msg = "Server Busy from Customer Work" }));
     }
     return(RedirectToAction("Index"));
 }
Exemplo n.º 2
0
 public ActionResult Create(System.Int64 CID = 0)
 {
     FOODDO.Models.Customer Obj = new FOODDO.Models.Customer();
     if (CID > 0)
     {
         Obj = FOODDO.Models.Customer.List.Find(x => x.CID == CID);
     }
     return(View(Obj));
 }