public async Task <IActionResult> GetAll([FromQuery] Helpers.Pager query)
        {
            var pager = _mapper.Map <Domain.Helpers.Pager>(query);

            var users = _usersRepository.GetAll(pager);

            List <Models.UsersView.Users> items = _mapper.Map <List <Models.UsersView.Users> >(users);

            var result = new UsersView
            {
                Items      = items,
                TotalItems = pager.TotalItems
            };

            return(Ok(result));
        }
        public async Task <IActionResult> Details(string id)
        {
            if (String.IsNullOrEmpty(id))
            {
                return(BadRequest());
            }

            var user = await _usersRepository.GetDetails(id);

            if (user == null)
            {
                return(NotFound());
            }

            UsersView result = _mapper.Map <Models.UsersView>(user);

            return(Ok(result));
        }