XmlResult

Serialize an object to xml and return the xml

parameter:
  • objectToSerialize: object to serialize to xml

        [HttpGet]
        public ActionResult Contact()
        {
            LoginModel model = new LoginModel();
            return new XmlResult(model);
        }

Last edited Jun 12, 2013 at 12:18 PM by jefflequeux, version 1

Comments

No comments yet.