public bool Delete(UserQueryForm form) { return bll.Delete(form); }
public bool Delete(UserQueryForm user) { ISqlMapper mapper = Common.GetMapperFromSession(); UserDao userdao = new UserDao(mapper); User_RoleDao urdao = new User_RoleDao(mapper); UserInfoDao uidao = new UserInfoDao(mapper); UserQueryForm uform = new UserQueryForm { ID = user.ID }; userdao.Delete(uform); UserInfoQueryForm uiform = new UserInfoQueryForm { ID = user.ID, }; uidao.Delete(uiform); User_RoleQueryForm urform = new User_RoleQueryForm { UserID = user.ID, }; urdao.Delete(urform); SOAFramework.Library.WeiXin.WeiXinApi.User.Delete(user.Name); return true; }