public ActionResult _partialOptions(OptionsFactorViewModel optionsFactorModelObj) { try { _serviceFacade.saveOptionsFactor(optionsFactorModelObj.optionFactorObject); TempData["Success"] = true; } catch (Exception ex) { TempData["Success"] = false; } return(RedirectToAction("OptionsFactor")); }
public ActionResult _partialOptions(int?Id) { OptionsFactorViewModel model = new OptionsFactorViewModel(); if (Id.HasValue) { model.optionFactorObject = _serviceFacade.getOptionFactorsById(Id.Value); } model.lstOptionsType = _masterFacade.getOptionTypes(); model.lstManufacturers = _masterFacade.GetManufacturer(); model.lstStates = _masterFacade.GetStates(); return(View(model)); }