示例#1
0
        public static sub_campaign_account_lists ReleaseLock(int pFinalListId, int pAccountId)
        {
            using (BrightPlatformEntities _efDbContext = new BrightPlatformEntities(UserSession.EntityConnection)) {
                _efDbContext.FIReleaseCampaignLocks(UserSession.CurrentUser.UserId, pFinalListId, pAccountId);
            }

            using (BrightPlatformEntities _efDbContext = new BrightPlatformEntities(UserSession.EntityConnection)) {
                return _efDbContext.sub_campaign_account_lists.FirstOrDefault(i => i.final_list_id == pFinalListId && i.account_id == pAccountId);
            }
        }
示例#2
0
 public static void ReleaseUserLock()
 {
     using (BrightPlatformEntities _efDbContext = new BrightPlatformEntities(UserSession.EntityConnection)) {
         _efDbContext.FIReleaseCampaignLocks(UserSession.CurrentUser.UserId, null, null);
     }
 }