// GET: Home/Create public IActionResult Create() { List <Mask> masks = _mrepo.FindAll().ToList(); List <MaskVM> model = _mapper.Map <List <MaskVM> >(masks); ViewBag.Masks = model; return(View()); }
// GET: Masks public ActionResult Index() { var masks = _repo.FindAll().ToList(); var model = _mapper.Map <List <MaskVM> >(masks); return(View(model)); }