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

                return(RedirectToAction("Index"));
            }
            return(View(model));
        }