コード例 #1
0
        public async Task <JsonResult> CompanyAttendance(string month)
        {
            int currentMonth = int.TryParse(month, out int result) ? result : DateTime.Now.Month;

            StatisticsService statistics = new StatisticsService(_employeeRepository);
            var model = await statistics.CompanyAttendance(CurrentCompanyId, currentMonth);

            return(Json(model, JsonRequestBehavior.AllowGet));
        }