Exemplo n.º 1
0
        public ActionResult Index([Bind(Include = "Page, Sort")] PageSortCriteria pageSortCriteria, [Bind(Include = "AddressType, Locality, Region")] AddressSearchCriteria searchCriteria = null)
        {
            AddressListVM vm = new AddressListVM
            {
                Addresses        = UOW.Addresses.GetAllPaged(pageSortCriteria, searchCriteria),
                PageSortCriteria = pageSortCriteria,
                SearchCriteria   = searchCriteria
            };

            return(View(vm));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            AddressListVM AddressList = new AddressListVM();

            AddressList.AddressList = _addressservice.GetRecords().Select(x => new AddressListVM.AddressBucket()
            {
                ID    = x.ID,
                Name  = x.Name,
                Line1 = x.Line1,
                Line2 = x.Line2,
                City  = x.City,
                State = x.State,
                Zip   = x.Zip
            }).ToList();
            return(View(AddressList));
        }