Esempio n. 1
0
        public IActionResult UpdateUrgency(int id)
        {
            var urgency = _urgencyService.GetById(id);
            UrgencyUpdateViewModel model = new UrgencyUpdateViewModel
            {
                Id         = urgency.Id,
                Definition = urgency.Definition
            };

            return(View(model));
        }
Esempio n. 2
0
        public IActionResult UpdateUrgency(int id)
        {
            TempData["Active"] = "Urgency";
            var Urgency = _UrgencyService.GetById(id);
            UrgencyUpdateViewModel UrgencyUpdate = new UrgencyUpdateViewModel()
            {
                Description = Urgency.Description, Id = Urgency.Id
            };

            return(View(UrgencyUpdate));
        }
Esempio n. 3
0
        public IActionResult UpdateUrgency(int id)
        {
            TempData["active"] = "urgency";
            var urgency = _urgencyService.GetById(id);
            UrgencyUpdateViewModel model = new UrgencyUpdateViewModel
            {
                Id           = urgency.Id,
                UrgencyLevel = urgency.UrgencyLevel
            };

            return(View(model));
        }
Esempio n. 4
0
 public IActionResult EditUrgency(int id)
 {
     TempData["Active"] = "urgency";
     return(View(_mapper.Map <UrgencyEditDTO>(_urgencyService.GetById(id))));
 }
        public IActionResult UpdateUrgency(int id)
        {
            TempData["Active"] = TempDataInfo.Urgency;

            return(View(_mapper.Map <UrgencyUpdateDto>(_urgencyService.GetById(id))));
        }