public PartialViewResult EditPV(long id) { Device device = UnitOfWork_Repositories.repoDevices.Find(id); ViewBag.UTC_Diff = new SelectList(StaticMenus.GetRegionalTimeOptions(), device.UTC_Diff); return(PartialView("_Edit", device)); }
public PartialViewResult EditPV(long id) { Thing Thing = UnitOfWork_Repositories.repoThings.Find(id); ViewBag.UTC_Diff = new SelectList(StaticMenus.GetRegionalTimeOptions(), Thing.UTC_Diff); ViewBag.CategoryID = new SelectList(UnitOfWork_Repositories.repoThingCategorys.GetList(), "ID", "Title", Thing.CategoryID); return(PartialView("_Edit", Thing)); }
public PartialViewResult PlatformConfigPV() { SetupModels.PlatformConfig conf = new SetupModels.PlatformConfig(); try { UnitOfWork_Repositories uof_repos = new UnitOfWork_Repositories(); conf = uof_repos.repoDynSettings.GetSetupPlatformConfig(); ViewBag.TimeZone = new SelectList(StaticMenus.GetRegionalTimeOptions(), conf.TimeZone); } catch { ViewBag.TimeZone = new SelectList(StaticMenus.GetRegionalTimeOptions(), 0); } return(PartialView("_Config", conf)); }
public PartialViewResult AddPV() { ViewBag.UTC_Diff = new SelectList(StaticMenus.GetRegionalTimeOptions(), Config.App_TimeZone); return(PartialView("_Add")); }
public PartialViewResult AddPV() { ViewBag.UTC_Diff = new SelectList(StaticMenus.GetRegionalTimeOptions(), Config.App_TimeZone); ViewBag.CategoryID = new SelectList(UnitOfWork_Repositories.repoThingCategorys.GetList(), "ID", "Title", 0); return(PartialView("_Add")); }