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); } }
public Stock_Repository(BG_Application.Data.BG_DBEntities _DB) { DB = _DB; }
public Broker_Repository(BG_Application.Data.BG_DBEntities _DB) { DB = _DB; }
public Dashboard_Repository(BG_Application.Data.BG_DBEntities _DB) { DB = _DB; }
public SalesPerson_Repository(BG_Application.Data.BG_DBEntities _DB) { DB = _DB; }