public async Task <ActionResult> Index()
        {
            var lots = (await auctionService.GetRange(0)).Select(t => t.ToLotMvc());
            IEnumerable <Category> categories = (await categoryAccessor.GetAll()).Select(t => t.ToMvcCategory());

            ViewData["Categories"] = categories;
            return(View(lots));
        }
        public async Task <ActionResult> Create()
        {
            IEnumerable <SelectListItem> cats = (await categoriesAccessor.GetAll()).Select(t => new SelectListItem()
            {
                Text = t.Name, Value = t.Id.ToString()
            });

            ViewData["Categories"] = cats;
            return(View());
        }