Exemplo n.º 1
0
        public async Task <IActionResult> Post([FromBody] TermoAceiteViewModel model)
        {
            model.Guid = Guid.NewGuid();
            await _termoAceiteService.CreateAsync(model);

            return(Ok(model));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Put(int id, [FromBody] TermoAceiteViewModel model)
        {
            model.Id = id;
            await _termoAceiteService.EditAsync(model);

            return(NoContent());
        }