Beispiel #1
0
 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("恢复失败!"));
         }
     }
 }
Beispiel #2
0
 public bool Delete(TB_UserRoleStatus TB_UserRoleStatus)
 {
     return(TB_UserRoleStatus.Delete(TB_UserRoleStatus));
 }
Beispiel #3
0
 public bool Add(TB_UserRoleStatus TB_UserRoleStatus)
 {
     return(TB_UserRoleStatus.Add(TB_UserRoleStatus));
 }
Beispiel #4
0
 public bool Update(TB_UserRoleStatus TB_UserRoleStatus)
 {
     return(TB_UserRoleStatus.Update(TB_UserRoleStatus));
 }
Beispiel #5
0
 public UserRoleStatusService(TB_UserRoleStatus TB_UserRoleStatus)
 {
     this._TB_UserRoleStatus = TB_UserRoleStatus;
 }