Exemplo n.º 1
0
        public IActionResult CreateEstablishment(HCEstablishmentsViewModel newEstablishment)
        {
            var model = _mapper.Map <HCEstablishments>(newEstablishment);

            _hcestablishmentsRepository.Save(model);

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public IActionResult CreateEstablishment()
        {
            var viewmodel = new HCEstablishmentsViewModel();

            return(View(viewmodel));
        }