【发布时间】:2011-09-16 12:42:54
【问题描述】:
我有当前的控制器代码:
public ActionResult BodyDay(int id, int year)
{
var repo = new Repo();
return new XmlResult(repo.getBodyDay(id, year));
}
它曾经返回xml,现在我返回的只是
MvcContrib.ActionResults.XmlResult
【问题讨论】: