private IEnumerable <HubOwnerViewModel> GetHubOwner() { var result = _hubOwnerService.GetAllHubOwner(); var viewModelList = new List <HubOwnerViewModel>(); foreach (var hubOwner in result) { var ownerViewModel = new HubOwnerViewModel(); ownerViewModel.Name = hubOwner.Name; ownerViewModel.LongName = hubOwner.LongName; ownerViewModel.HubOwnerID = hubOwner.HubOwnerID; viewModelList.Add(ownerViewModel); } return(viewModelList); }
// // GET: /Warehouse/Create public virtual ActionResult Create() { ViewBag.HubOwnerID = new SelectList(_hubOwnerService.GetAllHubOwner().OrderBy(o => o.Name), "HubOwnerID", "Name"); return(PartialView()); }
public virtual ActionResult Index() { return(View(_hubOwnerService.GetAllHubOwner())); }
// // GET: /Settings/Hubs/ public ActionResult Index() { ViewBag.HubOwnersList = _hubOwnerService.GetAllHubOwner().OrderBy(o => o.Name); return(View()); }
public ActionResult ReadAllJson([DataSourceRequest] DataSourceRequest request) { var list = toViewModelCollection(_hubOwnerService.GetAllHubOwner()); return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }
// // GET: /Hub/ public ActionResult Index() { ViewData["HubOwners"] = _hubOwnerService.GetAllHubOwner(); return(View()); }