Exemplo n.º 1
0
        public async Task <object> GetAllUser()
        {
            try
            {
                List <User> UserResponse = await userService.GetAllUser();

                return(new
                {
                    Status = Models.APIResult.ResultSuccessStatus,
                    ListUser = UserResponse
                });
            }
            catch (Exception e)
            {
                throw new InternalServerErrorException(e.Message);
            }
        }