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))); }
public ActionResult GetInventoryPeriods() { return(PartialView("_List", InventoryPeriodHelper.GetInventoryPeriods(SessionHelper.SOBId))); }
public ActionResult CreatePartial() { IEnumerable <InventoryPeriodModel> model = InventoryPeriodHelper.GetInventoryPeriods(SessionHelper.SOBId); return(PartialView("_List", model)); }