public void InitializeConstants()
 {
     NEPALICORNEREntities ncEntities = new NEPALICORNEREntities();
     NcConstants.DefaultCountryId = ncEntities.Countries.FirstOrDefault(x => x.CountryName == "Dummy Country").Id;
     NcConstants.DefaultCityId = ncEntities.Cities.FirstOrDefault(x => x.CityName == "Dummy City").Id;
     NcConstants.DefaultStateId = ncEntities.States.FirstOrDefault(x => x.StateName == "Dummy State").Id;
 }
 public void InitializeConstants()
 {
     NEPALICORNEREntities ncEntities = new NEPALICORNEREntities();
     var firstOrDefault = ncEntities.Countries.FirstOrDefault(x => x.CountryName == "Dummy Country");
     if (firstOrDefault != null)
         NcConstants.DefaultCountryId = firstOrDefault.Id;
     var orDefault = ncEntities.Cities.FirstOrDefault(x => x.CityName == "Dummy City");
     if (orDefault != null)
         NcConstants.DefaultCityId = orDefault.Id;
     var @default = ncEntities.States.FirstOrDefault(x => x.StateName == "Dummy State");
     if (@default != null)
         NcConstants.DefaultStateId = @default.Id;
 }
 public AccountUserRepository()
 {
     _ncEntities = new NEPALICORNEREntities();
 }
Esempio n. 4
0
 public AddressRepository()
 {
     _ncEntities = new NEPALICORNEREntities();
 }
Esempio n. 5
0
 public PostRepository()
 {
     _ncEntities = new NEPALICORNEREntities();
 }
 public EmailTemplateRepository()
 {
     _ncEntities = new NEPALICORNEREntities();
 }