public ActionResult ReDeleteDeal(Guid id) { using (var fact = Wcf <UserRoleStatusService>()) { var channel = fact.CreateChannel(); TB_UserRoleStatus userRoleStatus = channel.QuerySingle(new TB_UserRoleStatusQueryObject { QueryCondition = t => t.UserUid == id }).Cast <TB_UserRoleStatus>(); userRoleStatus.StatusId = opt_UserStatus.NORMAL.ToInt(); if (channel.Update(userRoleStatus)) { return(OK("恢复成功!")); } else { return(ERROR("恢复失败!")); } } }
public bool Delete(TB_UserRoleStatus TB_UserRoleStatus) { return(TB_UserRoleStatus.Delete(TB_UserRoleStatus)); }
public bool Add(TB_UserRoleStatus TB_UserRoleStatus) { return(TB_UserRoleStatus.Add(TB_UserRoleStatus)); }
public bool Update(TB_UserRoleStatus TB_UserRoleStatus) { return(TB_UserRoleStatus.Update(TB_UserRoleStatus)); }
public UserRoleStatusService(TB_UserRoleStatus TB_UserRoleStatus) { this._TB_UserRoleStatus = TB_UserRoleStatus; }