public Country AddCountry(Country entity)
 {
     using (PropertyHubContext context = new PropertyHubContext())
     {
         context.Add(entity);
         context.SaveChanges();
     }
     return(entity);
 }
 public Province AddProvince(Province entity)
 {
     using (PropertyHubContext context = new PropertyHubContext())
     {
         context.Entry(entity.Country).State = EntityState.Unchanged;
         context.Add(entity);
         context.SaveChanges();
     }
     return(entity);
 }
 public City AddCity(City entity)
 {
     using (PropertyHubContext context = new PropertyHubContext())
     {
         context.Entry(entity.Province).State = EntityState.Unchanged;
         context.Add(entity);
         context.SaveChanges();
     }
     return(entity);
 }