public IHttpActionResult Get(int year = 0, int month = 0) { if (year == 0) { year = DateTime.Today.Year; } if (month == 0) { month = DateTime.Today.Month; } return(Ok(TimeKeeperReports.MonthlyReport(year, month))); }
public IHttpActionResult Get(int year = 0) { if (year == 0) { year = DateTime.Today.Year; } return(Ok(new { year, list = TimeKeeperReports.AnnualReport(year) })); }
public IHttpActionResult Get(string teamId, int year = 0, int month = 0) { if (year == 0) { year = DateTime.Today.Year; } if (month == 0) { month = DateTime.Today.Month; } return(Ok(new { year, month, list = TimeKeeperReports.TeamDashboard(teamId, year, month) })); }
public IHttpActionResult Get(int id, int year = 0, int month = 0) { if (year == 0) { year = DateTime.Today.Year; } if (month == 0) { month = DateTime.Today.Month; } return(Ok(new { year, month, id, list = TimeKeeperReports.PersonalReport(id, year, month) })); }
public IHttpActionResult Get(int projectId) { return(Ok(TimeKeeperReports.ProjectHistory(projectId))); }