public ActionResult DeletePriority(int id)
        {
            var PriorityToDelete = _repository.GetPriorityById(id);

            _repository.DeletePriority(PriorityToDelete);
            _repository.SaveChanges();
            return(NoContent());
        }
示例#2
0
 public int Deletepriority(IPriority _priority, int PriorityID, int tenantID, int UserID, int PriorityFor)
 {
     _priorityList = _priority;
     return(_priorityList.DeletePriority(PriorityID, tenantID, UserID, PriorityFor));
 }