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)); }
public IHttpActionResult GetLessons([FromUri] GetPeriodFormData gpFormData) { return(Ok(educationComplexManager.GetLessonsOfTerm(gpFormData.Year, gpFormData.Term))); }