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")); }
/*** 批量刪除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")); }