Пример #1
0
 public ActionResult Create(FOODDO.Models.DeliveryBoy Model)
 {
     if (Model.Save() != 0)
     {
         return(RedirectToAction("Index"));
     }
     return(Json(new { msg = "Server Busy for Create Delivery Boy" }));
 }
Пример #2
0
 public ActionResult Create(int DBID = 0)
 {
     FOODDO.Models.DeliveryBoy ObjDB = new FOODDO.Models.DeliveryBoy();
     if (DBID > 0)
     {
         ObjDB = FOODDO.Models.DeliveryBoy.List.Find(x => x.DBID == DBID);
     }
     return(View(ObjDB));
 }