public ActionResult ExistSubgroup(string group, string subname) { ScheduleContext sc = new ScheduleContext(); bool t = sc.ExistSubg(group, subname, User.Identity.Name); return(Json(new { returnvalue = t })); }