public Task <List <Coach> > GetCoaches() { try { return(_coachRepository.GetAll()); } catch (Exception ex) { _logger.LogWarning($"{ex.Message}\r\n{ex.StackTrace}"); return(null); } }
public List <Coach> GetAllCoaches() { var dbcoaches = _coachRepo.GetAll(); List <Coach> coaches = new List <Coach>(); foreach (COACH dbcoach in dbcoaches) { coaches.Add(new Coach(dbcoach.COACH_INTERNAL_ID, dbcoach.PERSON.FIRSTNAME, dbcoach.PERSON.LASTNAME, dbcoach.PERSON.EMAIL, dbcoach.PERSON.TELEPHONE, dbcoach.PAYOFFRATE, dbcoach.PAYMENTRATE, (Decimal)dbcoach.PAYOFF)); } return(coaches); }
public List <CoachDto> GetAll() { return(_coachRepository.GetAll().Select(c => _mapper.Map <CoachDto>(c)).ToList()); }
public async Task <List <Coach> > GetAllCoaches() { return(await _coachRepo.GetAll()); }
public List <Coach> GetAll() { return(_repository.GetAll()); }
public async Task <List <Coach> > GetCoachs() { return(await _Coachs.GetAll()); }