Exemple #1
0
        public static string GetEmailAdress(this IIdentity identity)
        {
            var userId = identity.GetUserId();

            using (var context = new BG_Application.Data.BG_DBEntities())
            {
                var user = context.AspNetUsers.FirstOrDefault(u => u.Id == userId);
                return(user.Email);
            }
        }
Exemple #2
0
 public Stock_Repository(BG_Application.Data.BG_DBEntities _DB)
 {
     DB = _DB;
 }
Exemple #3
0
 public Broker_Repository(BG_Application.Data.BG_DBEntities _DB)
 {
     DB = _DB;
 }
Exemple #4
0
 public Dashboard_Repository(BG_Application.Data.BG_DBEntities _DB)
 {
     DB = _DB;
 }
Exemple #5
0
 public SalesPerson_Repository(BG_Application.Data.BG_DBEntities _DB)
 {
     DB = _DB;
 }