Esempio n. 1
0
        public async Task <IActionResult> PutManufacturer(int id, Manufacturer manufacturer)
        {
            if (id != manufacturer.Id)
            {
                return(BadRequest());
            }

            _bll.Manufacturers.Update(manufacturer);
            await _bll.SaveChangesASync();

            return(NoContent());
        }