예제 #1
0
 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)));
 }
예제 #2
0
 public IHttpActionResult Get(int year = 0)
 {
     if (year == 0)
     {
         year = DateTime.Today.Year;
     }
     return(Ok(new
     {
         year,
         list = TimeKeeperReports.AnnualReport(year)
     }));
 }
예제 #3
0
 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)
     }));
 }
예제 #4
0
 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)
     }));
 }
예제 #5
0
 public IHttpActionResult Get(int projectId)
 {
     return(Ok(TimeKeeperReports.ProjectHistory(projectId)));
 }