Exemplo n.º 1
0
        public ActionResult DeleteFBMembers(Guid FBMemberid, int p)
        {
            FBMembers fbmember = fbmembersService.GetByID(FBMemberid);

            fbmember.Isenable = 0;
            fbmembersService.SpecificUpdate(fbmember, new string[] { "Isenable" });
            fbmembersService.SaveChanges();
            return(RedirectToAction("FBMembers"));
        }
Exemplo n.º 2
0
        /*** 批量刪除FB會員 ****/
        public JsonResult AjaxDeleteFBMembersChecked(Guid[] FBMemberid)
        {
            if (FBMemberid != null)
            {
                foreach (Guid thismemberid in FBMemberid)
                {
                    FBMembers fbmember = fbmembersService.GetByID(thismemberid);
                    fbmember.Isenable = 0;
                    fbmembersService.SpecificUpdate(fbmember, new string[] { "Isenable" });
                }
                fbmembersService.SaveChanges();
            }

            return(this.Json("Success"));
        }