Пример #1
0
 public Result Delete(Model.DB.User model)
 {
     UserRA.Delete(model.id.ToString());
     MessageBiz.Send(model.id.ToString(), MessageTypeEnum.User_Forbidden);
     model.created_by = user_id;
     return(Result(UserDA.Delete(model)));
 }
Пример #2
0
 public Result UpdateStatus(StatusUser model)
 {
     if (model.status != StatusUserEnum.Allowed)
     {
         UserRA.Delete(model.id.ToString());
     }
     if (model.status != StatusUserEnum.Forbidden)
     {
         MessageBiz.Send(model.id.ToString(), MessageTypeEnum.User_Forbidden);
     }
     else if (model.status == StatusUserEnum.ForcedOffline)
     {
         MessageBiz.Send(model.id.ToString(), MessageTypeEnum.User_ForcedOffline);
     }
     return(Result(UserDA.UpdateStatus(model)));
 }
Пример #3
0
 public Result Logout()
 {
     UserRA.Delete(user_id.ToString(), platform.ToString());
     return(Result(ApiResultEnum.Success));
 }