public ActionResult <IList <AirPlaneVM> > GetAll() { var result = _airplaneService.GetAll().ToList(); List <AirPlaneVM> obj = _mapper.Map <List <AirPlaneVM> >(result); return(obj); }
public IEnumerable <AirplaneDto> GetAll() { return(_service.GetAll()); }
public IEnumerable <Airplane> GetAll() { return(_airplaneService.GetAll()); }
public async Task <List <AirplaneViewModel> > GetAllCodeNews() { return(_mapper.Map <List <AirplaneViewModel> >(await _dbAirplane.GetAll())); }
public ActionResult <IEnumerable <Airplane> > Get() { return(Ok(_service.GetAll())); }
public async Task <IEnumerable <AirplaneViewModel> > Get() { return((await _airplaneService.GetAll()).Select(ur => ur.ToViewModel())); }