protected void Application_Start(object sender, EventArgs e) { Database.SetInitializer(new EntitiesContextInitializer()); // Workaround to get the DB filled at first run SalutationDB salutations = new SalutationDB(); ICollection <Salutation> salutationList = new List <Salutation>(); salutationList = salutations.GetAllSalutations(); // End of workaround }
public ICollection <Salutation> GetSalutations() { SalutationDB dataaccess = new SalutationDB(); return(dataaccess.GetAllSalutations()); }