public ActionResult Index() { var optionCat = optionCategoryService.FindAll().ToList(); var model = new OptionCategoriesIndexViewModel { OptionsCategories = Mapper.Map <List <OptionCategoryIndexViewModel> >(optionCat) }; return(View(model)); }
public ActionResult Index() { var optionCat = optionCategoryService.FindAll().ToList(); var model = new OptionCategoriesIndexViewModel { OptionsCategories = Mapper.Map<List<OptionCategoryIndexViewModel>>(optionCat) }; return View(model); }