Пример #1
0
 public Drone Create(Drone drone)
 {
     ValidateData(drone);
     return(_droneRepo.Create(drone));
 }
Пример #2
0
 public async Task Create(DroneDTO dto)
 {
     await _repository.Create(dto);
 }