Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question