public List <UserDto> GetUsers() { //automapper testing var list = _repo.GetUsers().Select(x => Mapper.Map <UserDto>(x)); return(list.ToList()); }