Example #1
0
        public Assignee UpdateAssignee(int id, Assignee assignee)
        {
            if (id <= 0)
            {
                throw new ArgumentNullException("id cannot be null or negative");
            }

            return(_assigneeRepository.UpdateAssignee(id, assignee));
        }
Example #2
0
 public IActionResult UpdateAssigneeo(Assignee updatedAssignee)
 {
     assigneeRepository.UpdateAssignee(updatedAssignee);
     return(RedirectToAction("Index"));
 }