Create a gist now

Instantly share code, notes, and snippets.

BalanceController
public class BalanceController : ApiController
{
[HttpGet]
public HttpResponseMessage Get()
{
return Request.CreateResponse(HttpStatusCode.OK,
new List<Balance>
{
new Balance{ Date = new DateTime(2014,02,01), Amount = 500m },
new Balance{ Date = new DateTime(2014,02,05), Amount = 400m },
new Balance{ Date = new DateTime(2014,02,10), Amount = 300m }
});
}
}
public class Balance
{
public DateTime Date { get; set; }
public decimal Amount { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment