I have two methods of type Post But what I do not know is how to differentiate one method from the other in the Post type request.
[HttpPost]
public ExpedienteDto Post(ExpedienteDto dto)
{
return ProcesosService.CrearExpediente(dto);
}
[HttpPost]
public NumeroExpediente GuardarNumeroConsuta(NumeroExpediente numero, string IdUsuario)
{
Console.Write(numero.ToString());
return ProcesosService.GuardarNumeroConsuta(numero, IdUsuario);
}
How do I differentiate that in this part so that when I send the request fence to the method it should be that in this case it is the second one in the code.