// GET: api/TestSubject
 public IEnumerable <TestSubject> Get()
 {
     return(subjectService.GetAllTestSubjects());
 }
 // GET: Default
 public ActionResult Index()
 {
     ViewBag.subjects = subjectService.GetAllTestSubjects();
     return(View());
 }
Exemple #3
0
 public ActionResult Get()
 {
     Response.Cache.SetMaxAge(new TimeSpan(0));
     return(Json(subjectService.GetAllTestSubjects(), JsonRequestBehavior.AllowGet));
 }