Exemplo n.º 1
0
 public Drone Delete(int id)
 {
     if (id < 1)
     {
         throw new ArgumentException("The Id entered has to be at least 1");
     }
     return(_droneRepo.Delete(id));
 }
 public async Task <bool> Delete(Drone drone)
 {
     return(await _droneRepository.Delete(drone));
 }
Exemplo n.º 3
0
 public async Task Delete(int id)
 {
     await _repository.Delete(id);
 }