-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use SelectListItem for dropdown #21
Comments
Hi @MKI-Miro
God no! You Application should not be aware of what kind of client is consuming it - web, mobile, windows, don't care. So, no dependency at all on it. The Application project should be ready to serve any kind of client. About the Actually, this depends on you. You can extend the You also can - but shouldn't - create the |
but I cannot add SelectListItem to CustomerViewModel.... (because of dependency to MVC) so what is the solution? |
You extend it. At you UI.Web project, create a file
|
but CustomerAppService does not reference UI.Web |
Ok, we are missing some info here. What you have right now at your Can you share the code here? |
nothing :) it was just wondering how to do it. All I have is your code. So maybe you can extend your application with one dropdown. |
But I already show you that with What you didn't get it? |
Can we close your issue, @MKI-Miro ? |
I think @thiagolunardi helped you, if you have more questions please reopen the issue. |
Hi
I need to use dropdown. So for example i need to add this
public IEnumerable<SelectListItem> CreditCards { get; set;
to
CustomerViewModel
but SelectListItem is part of Microsoft.AspNetCore.Mvc.ViewFeatures.dll
Is it correct to add MVC dependency to Application project?
Thanks
The text was updated successfully, but these errors were encountered: