public async Task <IActionResult> PutItems([FromQuery] int id, string replydatetime, double?price) { Item item = new Item(); item.Id = id; item.Price = price; item.ReplyDateTime = replydatetime; var response = await _putItem.PutItems <Item>(item, Item.nomeTabela); if (response.HttpStatusCode.Equals(HttpStatusCode.OK)) { return(Ok()); } else { return(BadRequest(response)); } }
public async Task <IActionResult> PutItems([FromQuery] int codigo, string uf, string nome) { Item item = new Item(); item.Codigo = codigo; item.UF = uf; item.Nome = nome; var response = await _putItem.PutItems <Item>(item, Item.nomeTabela); if (response.HttpStatusCode.Equals(HttpStatusCode.OK)) { return(Ok()); } else { return(BadRequest(response)); } }