Object as parameters for C # API

1

I have a request made in Angular for C #. However I do not know how to receive the data in My API In C #.

 getWithFilters(filter: any) {

    let parametros: any = {
        razaoSocial: filter.razaoSocial,
        cnpj: filter.cnpjcpf,
        telefone: filter.telefone
    }

    return this.http
        .get(this.UrlService + '/Clientes', parametros)
        .map((res: any) => res.data)
        .catch((super.serviceError));
}

So I do the request, however in C # How do I receive these parameters?

Thank you in advance. Lucas.

    
asked by anonymous 02.05.2018 / 22:02

1 answer

0

I was able to accomplish what I wanted. In the meantime, I stopped using GET and started sending via POST. Because in GET we can not send a body.

    
03.05.2018 / 21:35