Beispiel #1
0
 public ActionResult OrdersEdit(int?Id)
 {
     Models.OrdersDTO model = new Models.OrdersDTO();
     if (Id > 0)
     {
         model = _iOrdersService.GetOrders(Id.Value);
     }
     return(View(model));
 }
Beispiel #2
0
        public JsonResult OrdersSave(Models.OrdersDTO dto)
        {
            var result = _iOrdersService.SaveOrUpdateOrders(dto);

            return(Json(result));
        }