public IActionResult PutDepartingFlightInfo(int id, IncomingFlightInfo incomingFlightInfo) { if (!_incomingFlightInfoRepository.PutEntity(id, incomingFlightInfo)) { return(NotFound()); } return(NoContent()); }
public ActionResult <IncomingFlightInfo> PostDepartingFlightInfo(IncomingFlightInfo incomingFlightInfo) { _incomingFlightInfoRepository.Save(incomingFlightInfo); return(CreatedAtAction("GetDepartingFlightInfo", new { id = incomingFlightInfo.Id }, incomingFlightInfo)); }