Skip to content

Instantly share code, notes, and snippets.

@NineMvp
Created April 24, 2015 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NineMvp/bce6c1a466abb4fceac0 to your computer and use it in GitHub Desktop.
Save NineMvp/bce6c1a466abb4fceac0 to your computer and use it in GitHub Desktop.
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