public PartialViewResult ShoeTrackerHistory(HomePageModel model) { GetAllShoesQuery query = new GetAllShoesQuery(); model.ShoeTrackerDtoList = dispatcher.Dispatch <GetAllShoesQuery, List <ShoeTrackerDto> >(query); model.Names = dispatcher.Dispatch <GetNamesQuery, List <Names> >(new GetNamesQuery()); model.Names.Insert(0, new Names { Name = "All Shoes" }); model.NameList = model.Names.Select(item => new SelectListItem { Text = item.Name }); return(PartialView("AllShoes", model)); }
/// <summary> /// Gets all the shoes /// </summary> /// <param name="query"></param> /// <returns></returns> public List <ShoeTrackerDto> Retrieve(GetAllShoesQuery query) { return(shoeTrackerRepository.GetAllShoes()); }