Пример #1
0
 public ActionResult Edit(LoteViewModel model)
 {
     try
     {
         var service = new FabricacionServices.LotesServiceClient();
         service.EditarLote(model.Id, model.NroLote);
         return Index(true);
     }
     catch
     {
         return View();
     }
 }
Пример #2
0
 public ActionResult Create(LoteViewModel model)
 {
     try
     {
         var service = new FabricacionServices.LotesServiceClient();
         service.InsertarLote(model.NroLote, 1);
         return RedirectToAction("Index", new {creado = true});
     }
     catch
     {
         return View();
     }
 }