Пример #1
0
        public async Task <IEnumerable <MemberDto> > GetAllMembers()
        {
            var members = await repo.GetAll().ToListAsync();

            var membersDto = mapper.Map <List <MemberDto> >(members);

            return(membersDto);
        }
Пример #2
0
        public async Task <IEnumerable <MembersDTO> > GetAllMembers()
        {
            var members = await _repo.GetAll();

            return(_mapper.ToMembersDTO(members));
        }
 public IActionResult Index()
 {
     return(View(_repository.GetAll()));
 }