public void Update(HomeListing changeHome) { var item = context.homes.Attach(changeHome); item.State = Microsoft.EntityFrameworkCore.EntityState.Modified; context.SaveChanges(); }
public void Delete(HomeListing homeListing) { context.homes.Remove(homeListing); context.SaveChanges(); }
public void Add(HomeListing homeListing) { context.homes.Add(homeListing); context.SaveChanges(); }