public IActionResult UpdatePriority(PriorityUpdateViewModel model)
 {
     if (ModelState.IsValid)
     {
         _priorityService.Update(new Priority
         {
             Id          = model.Id,
             Description = model.Description
         });
         return(RedirectToAction("Index"));
     }
     return(View(model));
 }
 public IActionResult UpdatePriority(PriorityUpdateDto model)
 {
     if (ModelState.IsValid)
     {
         _priorityService.Update(new Priority
         {
             Id = model.Id,
             Definition = model.Defination
         });
         return RedirectToAction("Index");
     }
     return View(model);
 }
 public IActionResult EditSave(PriorityModel model)
 {
     try
     {
         _modelService.Update(model);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         Console.WriteLine(e.InnerException);
         throw;
     }
     return(Redirect("Index"));
 }
 // PUT: api/Priorities/5
 public void Put(int id, PriorityParam priorityParam)
 {
     _priorityService.Update(id, priorityParam);
 }