public ActionResult GetAll() { var repository = new DeployRepository(); return JsonNet(new Deploys { Items = repository.GetSince(DateTime.UtcNow.AddYears(-1000), Int32.MaxValue).ToArray() }); }
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() }); }