Ejemplo n.º 1
0
        public void GetAllUsers()
        {
            UserCrudService _userService = new UserCrudService();
            List <User>     _usersList   = _userService.GetAllUsers();

            Assert.IsNotNull(_usersList);
        }
        public ActionResult <List <UserModel> > GetAll()
        {
            var Users     = userService.GetAllUsers();
            var userModel = Users.Select(person => UserModel.FromDomain(person));

            return(Ok(userModel.ToList()));
        }