Created
April 24, 2015 21:01
-
-
Save NineMvp/bce6c1a466abb4fceac0 to your computer and use it in GitHub Desktop.
BalanceController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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