Esempio n. 1
0
        public HttpResponseMessage GetCustomer(Guid id)
        {
            MobileAppCustomer customer = customerAccountsManager.MobileAppCustomerDetails(id);

            if (customer == null)
            {
                String    notFoundMessage = "Member number not found";
                HttpError err             = new HttpError(notFoundMessage);
                return(Request.CreateResponse(HttpStatusCode.NotFound, err));
            }

            return(Request.CreateResponse(HttpStatusCode.OK, customer));
        }