示例#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)));
 }
 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)));
 }