public async Task <IHttpActionResult> Put(DeActiveUserCommand command)
        {
            try
            {
                await _appRepository.DeActiveUser(command.UserId, command.AppType);

                return(Ok(new ResponseModel
                {
                    Message = "فعال سازی کاربر",
                    Success = true,
                }));
            }
            catch (Exception e)
            {
                return(InternalServerError(e));
            }
        }
 public async Task Consume(ConsumeContext <IDeActiveUserEvent> context)
 {
     var message = context.Message;
     await _appRepository.DeActiveUser(message.UserId.ToString(), message.AppType);
 }