public async Task <IEnumerable <MemberDto> > GetAllMembers() { var members = await repo.GetAll().ToListAsync(); var membersDto = mapper.Map <List <MemberDto> >(members); return(membersDto); }
public async Task <IEnumerable <MembersDTO> > GetAllMembers() { var members = await _repo.GetAll(); return(_mapper.ToMembersDTO(members)); }
public IActionResult Index() { return(View(_repository.GetAll())); }