public static Access AddAvito(Access access)
 {
     BCT.Execute(c =>
     {
         var board        = c.BulletinDb.Boards.FirstOrDefault(q => q.Name == "Avito");
         access.BoardId   = board.Id;
         access.UserId    = c.UserId;
         access.StateEnum = FessooFramework.Objects.Data.DefaultState.Disable;
         TaskHelper.CreateAccessRegistration(access);
         c.SaveChanges();
     });
     return(access);
 }
        public static void CreateAccess(Guid userId, bool hasForwarding)
        {
            BCT.Execute(d =>
            {
                var newLogin = NameHelper.GetNewMail(userId);
                ConsoleHelper.SendMessage($"AvitoPublicateBulletin => Регистрация аккаунта {newLogin}");

                var password  = "******";
                var board     = d.BulletinDb.Boards.FirstOrDefault(q => q.Name == "Avito");
                var newAccess = new Access
                {
                    BoardId      = board.Id,
                    Login        = newLogin,
                    Password     = password,
                    UserId       = userId,
                    IsForwarding = hasForwarding
                };
                newAccess.StateEnum = FessooFramework.Objects.Data.DefaultState.Created;
                d.SaveChanges();
                TaskHelper.CreateAccessRegistration(newAccess);
            });
        }