// GET: api/TestSubject/5
 public TestSubject Get(long id)
 {
     return(subjectService.GetTestSubjectById(id));
 }
Exemple #2
0
 public ActionResult Get(long id)
 {
     Response.Cache.SetMaxAge(new TimeSpan(0));
     return(Json(subjectService.GetTestSubjectById(id), JsonRequestBehavior.AllowGet));
 }