public List <AspNetUsers> GetListBlockedUserID() { var user = new List <AspNetUsers>(); try { var transactionOptions = new System.Transactions.TransactionOptions(); transactionOptions.IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted; using (var transactionScope = new System.Transactions.TransactionScope(System.Transactions.TransactionScopeOption.Required, transactionOptions)) { user = new AspNetUsersQueryBuilder(new CommonEntities()).GetListBlockedUserID().ToList(); } return(user); } catch (Exception ex) { var logWallet = new LogWallet(); Task.Factory.StartNew(() => logWallet.Log(MethodBase.GetCurrentMethod(), "", ex, "")); return(user); } }
/// <summary> /// Get AspNetUser by aspNetUserId /// </summary> /// <param name="aspNetUserId"></param> /// <returns></returns> public AspNetUsers GetAspNetUserByPhoneNo(string pPhoneNo) { var user = new AspNetUsers(); try { var transactionOptions = new System.Transactions.TransactionOptions(); transactionOptions.IsolationLevel = System.Transactions.IsolationLevel.ReadUncommitted; using (var transactionScope = new System.Transactions.TransactionScope(System.Transactions.TransactionScopeOption.Required, transactionOptions)) { user = new AspNetUsersQueryBuilder(new CommonEntities()).GetPhoneNo(pPhoneNo).FirstOrDefault(); } return(user); } catch (Exception ex) { var logWallet = new LogWallet(); Task.Factory.StartNew(() => logWallet.Log(MethodBase.GetCurrentMethod(), pPhoneNo, ex, "")); return(user); } }