Exemplo n.º 1
0
        public async Task <ActionResult> Get(int id)
        {
            var result = await _stewardessService.GetById(id);

            if (result == null)
            {
                return(NoContent());
            }

            return(Ok(result));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Get(int id)
        {
            StewardessDto Stewardess = await service.GetById(id);

            if (Stewardess == null)
            {
                return(NotFound());
            }
            return(Ok(Stewardess));
        }
        public IActionResult Get(int id)
        {
            StewardessDto Stewardess = service.GetById(id);

            if (Stewardess == null)
            {
                return(NotFound());
            }
            return(Ok(Stewardess));
        }
Exemplo n.º 4
0
 public Stewardess Get(int id)
 {
     return(service.GetById(id));
 }