Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public void Update(HeadquarterModel model)
 {
     repository.Update(model);
 }
Ejemplo n.º 3
0
        public async Task <IActionResult> Update([FromBody] HeadquarterModel model)
        {
            manager.Update(model);

            return(Ok());
        }