0

I have the current controller code :

    public ActionResult BodyDay(int id, int year)
    {
        var repo = new Repo();
        return new  XmlResult(repo.getBodyDay(id, year));
    }

It used to return xml now all I get returned is

    MvcContrib.ActionResults.XmlResult
MarkKGreenway
  • 8,494
  • 5
  • 34
  • 53

1 Answers1

0

I just used the raw code from the MVCContrib source from this question primarily so I could debug it

Return XML from a controller's action in as an ActionResult?

and it worked like a dream so i moved on to the next problem

Community
  • 1
  • 1
MarkKGreenway
  • 8,494
  • 5
  • 34
  • 53