public ActionResult UpdateSettlementWeek(WeekSettlementModel weekSettlementModel) { var setting = SiteSettingApplication.SiteSettings; setting.WeekSettlement = weekSettlementModel.NewWeekSettlement; SiteSettingApplication.SaveChanges(); return(RedirectToAction("SetSettlementWeek")); }
public ActionResult SetSettlementWeek() { WeekSettlementModel model = new WeekSettlementModel(); var settings = SiteSettingApplication.SiteSettings; model.CurrentWeekSettlement = settings.WeekSettlement; return(View(model)); }
public ActionResult SetSettlementWeek() { WeekSettlementModel model = new WeekSettlementModel(); var settings = _iSiteSettingService.GetSiteSettings(); model.CurrentWeekSettlement = settings.WeekSettlement; return(View(model)); }
public ActionResult SetSettlementWeek() { WeekSettlementModel weekSettlementModel = new WeekSettlementModel() { CurrentWeekSettlement = ServiceHelper.Create <ISiteSettingService>().GetSiteSettings().WeekSettlement }; return(View(weekSettlementModel)); }
public ActionResult UpdateSettlementWeek(WeekSettlementModel weekSettlementModel) { _iSiteSettingService.SaveSetting("WeekSettlement", weekSettlementModel.NewWeekSettlement); return(RedirectToAction("SetSettlementWeek")); }
public ActionResult UpdateSettlementWeek(WeekSettlementModel weekSettlementModel) { ServiceHelper.Create <ISiteSettingService>().SaveSetting("WeekSettlement", weekSettlementModel.NewWeekSettlement); return(RedirectToAction("SetSettlementWeek")); }