public IActionResult UpdateUrgency(int id) { var urgency = _urgencyService.GetById(id); UrgencyUpdateViewModel model = new UrgencyUpdateViewModel { Id = urgency.Id, Definition = urgency.Definition }; return(View(model)); }
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)); }
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)); }
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)))); }