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