Пример #1
0
        public HttpResponseMessage Get()
        {
            var products        = _userServices.GetAllUsers();
            var productEntities = products as List <hmisUserBase> ?? products.ToList();

            if (productEntities.Any())
            {
                return(Request.CreateResponse(HttpStatusCode.OK, productEntities));
            }
            return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Products not found"));
        }