public void Put(int id, [FromBody] Location location) { location.LocationId = id; _db.Entry(location).State = EntityState.Modified; _db.SaveChanges(); }
public void Put(int id, [FromBody] Experience experience) { experience.ExperienceId = id; _db.Entry(experience).State = EntityState.Modified; _db.SaveChanges(); }