예제 #1
0
        public IHttpActionResult GetPerson(int id)
        {
            PersonBAL   BAL = new PersonBAL();
            PersonModel p   = BAL.GetPersonDetail(id);

            return(Ok(p));
            //return new HttpResponseMessage(HttpStatusCode.OK)
            //{
            //    Content = new ObjectContent<Person>(p, new XmlMediaTypeFormatter(), new MediaTypeWithQualityHeaderValue("application/xml"))
            //};
        }