public JsonResult GetComments() { List <ProjectList> comments = MyProjectManager.GetComments(Convert.ToInt32(Session["UserId"]), "Group"); return(Json(comments, JsonRequestBehavior.AllowGet)); }
public JsonResult GetComments(int groupId) { List <ProjectList> comments = MyProjectManager.GetComments(groupId, "Supervisor"); return(Json(comments, JsonRequestBehavior.AllowGet)); }