public void Update(HeadquarterModel model) { var headquarter = GetHeadquarterById(model.Id); headquarter.Country = model.Country; headquarter.City = model.City; headquarter.Street = model.Street; db.Headquarters.Update(headquarter); db.SaveChanges(); }
public void Update(HeadquarterModel model) { repository.Update(model); }
public async Task <IActionResult> Update([FromBody] HeadquarterModel model) { manager.Update(model); return(Ok()); }