Beispiel #1
0
        public async Task <ActionResult <Response <string> > > UpdateAirport(int id, [FromBody] AirplaneViewModel model)
        {
            Response <string> updateResult = await _airplaneService.UpdateAirplaneAsync(id, model);

            if (updateResult.Success == false)
            {
                return(BadRequest(updateResult));
            }

            return(Ok(updateResult));
        }