public async Task EditColor(Color color) { ctx.Entry(color).State = EntityState.Modified; await ctx.SaveChangesAsync(); }
public async Task EditBrand(Brand brand) { ctx.Entry(brand).State = EntityState.Modified; await ctx.SaveChangesAsync(); }