Esempio n. 1
0
 public IActionResult PutDepartingFlightInfo(int id, IncomingFlightInfo incomingFlightInfo)
 {
     if (!_incomingFlightInfoRepository.PutEntity(id, incomingFlightInfo))
     {
         return(NotFound());
     }
     return(NoContent());
 }
Esempio n. 2
0
        public ActionResult <IncomingFlightInfo> PostDepartingFlightInfo(IncomingFlightInfo incomingFlightInfo)
        {
            _incomingFlightInfoRepository.Save(incomingFlightInfo);

            return(CreatedAtAction("GetDepartingFlightInfo", new { id = incomingFlightInfo.Id }, incomingFlightInfo));
        }