public ActionResult getStadisticByDateForDeparment(String from, String to) { ProcedureConnection con = new ProcedureConnection(); System.Data.DataTable table = con.getStadisticByDateForDepartment(from, to); String json = Newtonsoft.Json.JsonConvert.SerializeObject(table); return(Json(json, JsonRequestBehavior.AllowGet)); }