Exemplo n.º 1
0
 public void Update(Category category)
 {
     context.Entry(category).State = EntityState.Modified;
     context.SaveChanges();
 }
 public void UpdateAdvertisement(Advertisement advertisement)
 {
     context.Entry(advertisement).State = EntityState.Modified;
     context.SaveChanges();
 }
Exemplo n.º 3
0
 public void UpdateCity(City model)
 {
     context.Entry(model).State = EntityState.Modified;
     context.SaveChanges();
 }