Exemple #1
0
        public ActionResult <CrewDto> Get(int id)
        {
            var ticket = _crewsSrvice.GetById(id);

            if (ticket == null)
            {
                return(NotFound());
            }

            return(_crewsSrvice.GetById(id));
        }
Exemple #2
0
 public async Task <CrewDTO> Get(int id)
 {
     return(await service.GetById(id));
 }