public IActionResult AddPriorityTask(PriorityAddViewModel model) { if (ModelState.IsValid) { _priorityService.Save(new Priority { Description = model.Description }); return(RedirectToAction("Index")); } return(View(model)); }
public IActionResult AddPriority(PriorityAddDto model) { if (ModelState.IsValid) { _priorityService.Save(new Priority() { Definition = model.Defination, }); return RedirectToAction("Index"); } return View(model); }