public async Task <ActionResult> Get(int id) { var result = await _stewardessService.GetById(id); if (result == null) { return(NoContent()); } return(Ok(result)); }
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)); }
public Stewardess Get(int id) { return(service.GetById(id)); }