Пример #1
0
        public HttpResponseMessage GetUserDogsByManager([FromBody] int userid)

        {
            Userservice        userservice        = new Userservice();
            DogsForManagerView dogsForManagerView = userservice.GetUserDogsForManager(userid);

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