public ActionResult StudentFeedbackStat(SearchStudentFeedbackStatModel searchModel) { return View("StudentFeedbackStat", new SearchStudentFeedbackStatModel() { SearchDate = DateTime.Now.Date }); }
public ActionResult SearchStudentFeedbackStat(SearchStudentFeedbackStatModel searchModel) { searchModel.SearchDate = searchModel.SearchDate ?? new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); var areaId = searchModel.BranchId.HasValue ? searchModel.BranchId.Value : 0; return PartialView("_StudentFeedbackStatList", ReportBLL.GetStudentFeedbackStat(areaId, searchModel.SearchDate.Value, DateTimeHelper.GetCurrMonthLastDayByDateTime(searchModel.SearchDate.Value))); }