public void AddAirTaxiType(AddAirTaxiTypeDto data)
        {
            var newAirTaxiType = AutoMapper.Mapper.Map <AddAirTaxiTypeDto, AirTaxiType>(data);

            _unitOfWork.AirTaxiTypeRepository.Add(newAirTaxiType);
            _unitOfWork.Commit();
        }
Exemplo n.º 2
0
 public IActionResult AddAirTaxiType([FromBody] AddAirTaxiTypeDto dronType)
 {
     _airTaxiTypeService.AddAirTaxiType(dronType);
     return(Json(JsonResultData.Success()));
 }