Example #1
0
 public ActionResult GetAll()
 {
     var repository = new DeployRepository();
     return JsonNet(new Deploys
     {
         Items = repository.GetSince(DateTime.UtcNow.AddYears(-1000), Int32.MaxValue).ToArray()
     });
 }
Example #2
0
 public ActionResult Get()
 {
     var repository = new DeployRepository();
     return JsonNet(new Deploys
     {
         Items = repository.GetSince(DateTime.UtcNow.AddMonths(-2), MaxReturnSize).Where(x => x.DateDeleted == null).ToArray()
     });
 }