Пример #1
0
        public void AddAirTaxiCompany(AddAirTaxiCompanyDto data)
        {
            var newAirTaxiCompany = AutoMapper.Mapper.Map <AddAirTaxiCompanyDto, AirTaxiCompany>(data);

            _unitOfWork.AirTaxiCompanyRepository.Add(newAirTaxiCompany);
            _unitOfWork.Commit();
        }
Пример #2
0
 public IActionResult AddAirTaxiCompany([FromBody] AddAirTaxiCompanyDto airTaxiCompany)
 {
     _airTaxiCompanyService.AddAirTaxiCompany(airTaxiCompany);
     return(Json(JsonResultData.Success()));
 }