public bool Delete(int?Id)
 {
     if (Id == null)
     {
         throw new NullReferenceException();
     }
     else
     {
         status = _takeLeaveRepository.Delete(Id);
     }
     return(status);
 }
Exemple #2
0
 // DELETE: api/TakeLeaves/5
 public void Delete(int Id)
 {
     _takeLeaveRepository.Delete(Id);
 }