Beispiel #1
0
        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);
        }
Beispiel #2
0
        //
        // GET: /Warehouse/Create

        public virtual ActionResult Create()
        {
            ViewBag.HubOwnerID = new SelectList(_hubOwnerService.GetAllHubOwner().OrderBy(o => o.Name), "HubOwnerID", "Name");
            return(PartialView());
        }
Beispiel #3
0
 public virtual ActionResult Index()
 {
     return(View(_hubOwnerService.GetAllHubOwner()));
 }
Beispiel #4
0
        //
        // GET: /Settings/Hubs/

        public ActionResult Index()
        {
            ViewBag.HubOwnersList = _hubOwnerService.GetAllHubOwner().OrderBy(o => o.Name);
            return(View());
        }
Beispiel #5
0
        public ActionResult ReadAllJson([DataSourceRequest] DataSourceRequest request)
        {
            var list = toViewModelCollection(_hubOwnerService.GetAllHubOwner());

            return(Json(list.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }
Beispiel #6
0
        //
        // GET: /Hub/

        public ActionResult Index()
        {
            ViewData["HubOwners"] = _hubOwnerService.GetAllHubOwner();
            return(View());
        }