Exemplo n.º 1
0
 public ActionResult DeleteInline(InventoryPeriodModel model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             model.CompanyId = AuthenticationHelper.CompanyId.Value;
             InventoryPeriodHelper.Delete(model.Id.ToString());
             return(PartialView("_List", InventoryPeriodHelper.GetInventoryPeriods(SessionHelper.SOBId)));
         }
         catch (Exception e)
         {
             ViewData["EditError"] = e.Message;
         }
     }
     else
     {
         ViewData["EditError"] = "Please, correct all errors.";
     }
     return(PartialView("_List", InventoryPeriodHelper.GetInventoryPeriods(SessionHelper.SOBId)));
 }
Exemplo n.º 2
0
 public ActionResult GetInventoryPeriods()
 {
     return(PartialView("_List", InventoryPeriodHelper.GetInventoryPeriods(SessionHelper.SOBId)));
 }
Exemplo n.º 3
0
        public ActionResult CreatePartial()
        {
            IEnumerable <InventoryPeriodModel> model = InventoryPeriodHelper.GetInventoryPeriods(SessionHelper.SOBId);

            return(PartialView("_List", model));
        }