Esempio n. 1
0
 public bool MyGroup_Del(Group model)
 {
     return MyGroupDAL.MyGroup_Del(model);
 }
Esempio n. 2
0
 public bool MyGroup_Edit(Group model)
 {
     return MyGroupDAL.MyGroup_Edit(model);
 }
Esempio n. 3
0
 /// <summary>
 /// 新增或修改我的联系组 
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public void MyGroup_Edit(HttpContext context)
 {
     Group model = new Group
     {
         GroupID = Convert.ToInt32(context.Request["GroupID"]),
         Name = context.Request["Name"],
         User = UserService.CurrentUser.UserID,
         Users = context.Request["Users"]
     };
     IES.G2S.CourseLive.BLL.Test.MyGroupBLL bll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL();
     bool flag = bll.MyGroup_Edit(model);
     if (flag == true)
     {
         context.Response.Write("1");
     }
     else
     {
         context.Response.Write("False");
     }
 }
Esempio n. 4
0
 /// <summary>
 ///  删除我的联系组 
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public void MyGroup_Del(HttpContext context)
 {
     Group model = new Group
     {
         GroupID = Convert.ToInt32(context.Request["GroupID"])
     };
     IES.G2S.CourseLive.BLL.Test.MyGroupBLL bll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL();
     bool flag = bll.MyGroup_Del(model);
     if (flag == true)
     {
         context.Response.Write("1");
     }
     else if (flag == false)
     {
         context.Response.Write("2");
     }
 }
Esempio n. 5
0
 /// <summary>
 /// 新增或修改我的联系组 
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static bool MyGroup_Edit(Group model)
 {
     try
     {
         using (var conn = DbHelper.CCService())
         {
             var p = new DynamicParameters();
             p.Add("@GroupID", model.GroupID);
             p.Add("@GroupName", model.Name);
             p.Add("@User", model.User);
             p.Add("@Users", model.Users);
             conn.Execute("MyGroup_Edit", p, commandType: CommandType.StoredProcedure);
             return true;
         }
     }
     catch (Exception e)
     {
         return false;
     }
 }
Esempio n. 6
0
 public static bool MyGroup_Edit(int GroupID,string Name,string Users)
 {
     string userid = IESCookie.GetCookieValue("ies");
     Group model = new Group { GroupID = GroupID, Name = Name, User = int.Parse(userid), Users = Users };
     return new MyGroupBLL().MyGroup_Edit(model);
 }
Esempio n. 7
0
 public static bool MyGroup_Del(int GroupID)
 {
     Group model = new Group { GroupID = GroupID };
     return new MyGroupBLL().MyGroup_Del(model);
 }