private void LogException(Exception e) { try { db = new BlockedUsersAndMessages(); ExceptionLog eg = new ExceptionLog(e); db.ExceptionLogs.Add(eg); db.SaveChanges(); } catch (Exception error) { // If an exception occured while trying to log the exception it probably means our database is down // we can not do any logging from here so we can not handle the exception } }
public EventRepository(IStoreAppContext appContext) { context = appContext; }
public ImageController(IStoreAppContext context) { _db = context; }
public ProductController(IStoreAppContext context) { db = context; }
public productoController(IStoreAppContext context) { db = context; }
public ProductsController(IStoreAppContext context) { this.db = context; }
public BlockUserController(IStoreAppContext db) { this.db = db; }
public StoreAppRepo(IStoreAppContext dbContext) { _dbContext = dbContext; }
public StoreMaintenance(IStoreAppContext storeAppContext) { _storeAppContext = storeAppContext; }
public ValuesController(IStoreAppContext context) { db = context; }
public Inventory(IStoreAppContext storeAppContext) { _storeAppContext = storeAppContext; }
public MessageController(IStoreAppContext db) { this.db = db; }
public UserService(IStoreAppContext context) { _context = context; }