public ActionResult GetOfficeStats(int?month = null, int?year = null) { if (month == null) { month = DateTime.Now.Month; } if (year == null) { year = DateTime.Now.Year; } return(Json(_dashboardBusiness.OfficeStats(month.Value, year.Value), JsonRequestBehavior.AllowGet)); }