public Categories GetById(int id) { using (Languages_bdContext db = new Languages_bdContext()) { try { return(db.Categories.Where(c => c.Id == id).FirstOrDefault()); } catch (Exception e) { throw e; } } }
public LanguagesRepository() { this.db = new Languages_bdContext(ConfigurateOptions.GetOptions()); }
public WordTranslationsRepository() { db = new Languages_bdContext(ConfigurateOptions.GetOptions()); }
public UsersRepository() { this.db = new Languages_bdContext(); }
public HomeController(Languages_bdContext context) { db = context; }
public CategoriesRepository() { db = new Languages_bdContext(ConfigurateOptions.GetOptions()); }
public TestResultsRepository() { this.db = new Languages_bdContext(); }
public TotalScoresRepository() { this.db = new Languages_bdContext(); }