コード例 #1
0
        public JsonResult GetLessons(int Year, int Term)
        {
            var result = JsonConvert.SerializeObject(educationComplexManager.GetLessonsOfTerm(Year, Term), Formatting.Indented,
                                                     new JsonSerializerSettings
            {
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore
            });

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
 public IHttpActionResult GetLessons([FromUri] GetPeriodFormData gpFormData)
 {
     return(Ok(educationComplexManager.GetLessonsOfTerm(gpFormData.Year, gpFormData.Term)));
 }