public ActionResult DeletePriority(int id) { var PriorityToDelete = _repository.GetPriorityById(id); _repository.DeletePriority(PriorityToDelete); _repository.SaveChanges(); return(NoContent()); }
public int Deletepriority(IPriority _priority, int PriorityID, int tenantID, int UserID, int PriorityFor) { _priorityList = _priority; return(_priorityList.DeletePriority(PriorityID, tenantID, UserID, PriorityFor)); }