Пример #1
0
        public async Task <IActionResult> Put([FromBody] Album album)
        {
            _beBlue.Entry(album).State = EntityState.Modified;
            await _beBlue.SaveChangesAsync();

            return(new ObjectResult("Álbum alterado com sucesso!"));
        }
Пример #2
0
        public async Task <IActionResult> Put([FromBody] ItensVenda itemVenda)
        {
            _beBlue.Entry(itemVenda).State = EntityState.Modified;
            await _beBlue.SaveChangesAsync();

            return(new ObjectResult("Item alterado com sucesso!"));
        }