public ObjectResult Post([FromBody] ClienteDTO cliente) { var clienteEntity = _mapper.Map <ClienteEntity>(cliente); _clienteApp.Salvar(clienteEntity); return(StatusCode((int)HttpStatusCode.Created, cliente)); }
public ObjectResult Post([FromBody] ClienteDTO cliente) { var clienteEntity = _mapper.Map <ClienteEntity>(cliente); _clienteApp.Salvar(clienteEntity); return(StatusCode((int)HttpStatusCode.Created, cliente)); }