public ActionResult EditMembers1(IEnumerable <loadcourseprofessors> lc) { if (lc != null) { System.Diagnostics.Debug.WriteLine("from3" + commName); add_MemberstoCommittee newmember = new add_MemberstoCommittee(); foreach (var member in lc) { System.Diagnostics.Debug.WriteLine("memberassigned:" + member.email + " " + member.Assigned); if (member.Assigned == true) { newmember.add(member.email, commName); } else { newmember.remove(member.email, commName); } } newmember.dispose(); return(Json("Table Updated")); } else { return(Json("An Error Has occoured")); } }
public ActionResult addmembertocommittee(String username) { //var committeeName = Request.QueryString["committeeName"].ToString(); System.Diagnostics.Debug.WriteLine(commName + "from3"); add_MemberstoCommittee addm = new add_MemberstoCommittee(); addm.add(commName, username); return(RedirectToAction("TeamsBoard", "AppViews")); }