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))); }
public IHttpActionResult GetAnnualReport(int year = 0) { if (year == 0) { year = DateTime.Today.Year; } return(Ok(new { year, list = TimeReports.AnnualReport(year) })); }
public IHttpActionResult GetProjectHistory(int projectId) { return(Ok(TimeReports.CreateProjectHistoryReport(projectId))); }