Ejemplo n.º 1
0
 private static void TaskAccessCheck(Access access)
 {
     BCT.Execute(c =>
     {
         var tasks = c.TempDB.Tasks.Where(q => q.AccessId == access.Id && q.Command == (int)BulletinHub.Entity.Data.TaskCommand.AccessCheck);
         if (tasks != null)
         {
             TaskHelper.Remove(tasks);
         }
         access.SetGenerationCheck();
         TaskHelper.CreateAccessCheck(access);
     });
 }