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

            return(_assigneeRepository.DeleteAssignee(id));
        }
Beispiel #2
0
 public IActionResult DeleteAssignee(int id)
 {
     assigneeRepository.DeleteAssignee(id);
     return(RedirectToAction("Index"));
 }
Beispiel #3
0
 public Assignee DeleteAssignee(int id)
 {
     return(_assigneeRepo.DeleteAssignee(id));
 }