Example #1
0
        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
            }
        }
Example #2
0
 public EventRepository(IStoreAppContext appContext)
 {
     context = appContext;
 }
Example #3
0
 public ImageController(IStoreAppContext context)
 {
     _db = context;
 }
Example #4
0
 public ProductController(IStoreAppContext context)
 {
     db = context;
 }
 public productoController(IStoreAppContext context)
 {
     db = context;
 }
 public ProductsController(IStoreAppContext context)
 {
     this.db = context;
 }
Example #7
0
 public BlockUserController(IStoreAppContext db)
 {
     this.db = db;
 }
Example #8
0
 public StoreAppRepo(IStoreAppContext dbContext)
 {
     _dbContext = dbContext;
 }
 public StoreMaintenance(IStoreAppContext storeAppContext)
 {
     _storeAppContext = storeAppContext;
 }
 public ValuesController(IStoreAppContext context)
 {
     db = context;
 }
Example #11
0
 public Inventory(IStoreAppContext storeAppContext)
 {
     _storeAppContext = storeAppContext;
 }
Example #12
0
 public EventRepository(IStoreAppContext appContext)
 {
     context = appContext;
 }
Example #13
0
 public MessageController(IStoreAppContext db)
 {
     this.db = db;
 }
 public UserService(IStoreAppContext context)
 {
     _context = context;
 }