Beispiel #1
0
        // 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());
        }
Beispiel #2
0
        // GET: Masks
        public ActionResult Index()
        {
            var masks = _repo.FindAll().ToList();
            var model = _mapper.Map <List <MaskVM> >(masks);

            return(View(model));
        }