public Assignee UpdateAssignee(int id, Assignee assignee) { if (id <= 0) { throw new ArgumentNullException("id cannot be null or negative"); } return(_assigneeRepository.UpdateAssignee(id, assignee)); }
public IActionResult UpdateAssigneeo(Assignee updatedAssignee) { assigneeRepository.UpdateAssignee(updatedAssignee); return(RedirectToAction("Index")); }