Esempio n. 1
0
        public ActionResult Edit(int id)
        {
            var model  = new CreateEditViewModel();
            var region = regionProvider.GetRegion(id);

            Mapper.DynamicMap(region, model);

            return(PartialView("CreateEdit", model));
        }
Esempio n. 2
0
        public ActionResult Edit(long id)
        {
            var model         = new CreateEditViewModel();
            var visitCategory = regionProvider.GetRegion(id);

            mapper.Map(visitCategory, model);

            return(PartialView("CreateEdit", model));
        }