public void AddAirTaxiCompany(AddAirTaxiCompanyDto data) { var newAirTaxiCompany = AutoMapper.Mapper.Map <AddAirTaxiCompanyDto, AirTaxiCompany>(data); _unitOfWork.AirTaxiCompanyRepository.Add(newAirTaxiCompany); _unitOfWork.Commit(); }
public IActionResult AddAirTaxiCompany([FromBody] AddAirTaxiCompanyDto airTaxiCompany) { _airTaxiCompanyService.AddAirTaxiCompany(airTaxiCompany); return(Json(JsonResultData.Success())); }