public WantsViewModel CreateNeededModelForWantsIndex() { var wants = _itemFetcherService.GetWants(10); WantsViewModel model = new WantsViewModel() { Wants = wants, BudgetedForWants = _user.BudgetedForWants }; return(model); }
public IActionResult Index() { try { WantsViewModel model = _vmGenerator.CreateNeededModelForWantsIndex(); return(View(model)); } catch { return(BadRequest()); } }