Example #1
0
        public JsonResult CalByDay()
        {
            var            startDate = UrlManager.FormDateTime("start_date") ?? DateTime.Now.Date;
            var            days      = UrlManager.FormInt("days") ?? 1;
            WorkdayService service   = new WorkdayService();
            var            result    = service.CalByDay(startDate, days);

            return(Json(result));
        }
Example #2
0
        public JsonResult CalByDate()
        {
            var startDate = UrlManager.FormDateTime("start_date") ?? DateTime.Now.Date;
            var endDate   = UrlManager.FormDateTime("end_date") ?? DateTime.Now.Date;

            WorkdayService service = new WorkdayService();
            var            result  = service.CalByDate(startDate, endDate);

            return(Json(result));
        }