Exemple #1
0
 public IHttpActionResult GetMonthlyReport(int year = 0, int month = 0)
 {
     if (year == 0)
     {
         year = DateTime.Today.Year;
     }
     if (month == 0)
     {
         month = DateTime.Today.Month;
     }
     return(Ok(TimeReports.MonthlyReport(year, month)));
 }
Exemple #2
0
 public IHttpActionResult GetAnnualReport(int year = 0)
 {
     if (year == 0)
     {
         year = DateTime.Today.Year;
     }
     return(Ok(new
     {
         year,
         list = TimeReports.AnnualReport(year)
     }));
 }
Exemple #3
0
 public IHttpActionResult GetProjectHistory(int projectId)
 {
     return(Ok(TimeReports.CreateProjectHistoryReport(projectId)));
 }