L
L
LiptonOlolo2021-07-07 13:52:18
ASP.NET
LiptonOlolo, 2021-07-07 13:52:18

How to search for counterparties?

Good day.
I started learning Asp.Net Core MVC and immediately ran into a problem. I don’t understand and don’t know how to search for counterparties, for example, on the order creation page.
As I see it: there is initially NO choice, if you start typing text into it, then through ajax (if I understand correctly, so as not to reload the page) a request is sent to the CounteragentsController/SearchByName controller from where all possible options arrive (IEnumerable) and the already received list becomes possible to select 1 counterparty from it.
How to do it? (Am I thinking right or do I need to look the other way?)
What are the best practices in this matter?
What is the best way to create such pages? First create an order, and then use a separate button (after creation, for example, in the list of all orders) to assign a counterparty to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2021-07-08
@sarapinit

This seems to be what you are looking for
https://docs.microsoft.com/en-us/aspnet/core/mvc/v...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question