Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public ActionResult <Servico> Post(Servico servico) { _repository.Cadastrar(servico); _repository.Salvar(); //Retorna o 201 Created, Com a URL para acessar o servico criado e os dados do servico return(CreatedAtAction("Get", new { id = servico.ServicoId }, servico)); }