Esempio n. 1
0
        public IEnumerable <User> Get()
        {
            ServiceResponse <User> Response = _userRepository.Select();

            if (Response.Error)
            {
                throw new HttpResponseException(this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, Response.Message));
            }
            return(Response.List);
        }