Beispiel #1
0
        public HttpResponseMessage GetUser(int userid)
        {
            Userservice     userservice = new Userservice();
            UserDetailsView user        = userservice.GetUser(userid);

            if (user == null)
            {
                return(Request.CreateResponse(HttpStatusCode.NotFound));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.OK, user));
            }
        }