[SOLVED] DropDownList From Objects MVC

Issue Ok so I want make a DropDownList from my object list here is my getting object method public List<Category> GetCategoriesList() { BaseShopEntities context = new BaseShopEntities(); List<Category> uniqCategories = (from c in context.Category select c).Distinct().ToList<Category>(); return uniqCategories; } I

Continue reading

[SOLVED] How to return model to view that requires ViewData in .net core MVC?

Issue I have .net core mvc application, which has two action methods inside post controller. [HttpGet] public async Task<IActionResult> Create() { var hostAppGetQuery = new Application.Handlers.HostApps.Queries.List.Query(); var platformGetQuery = new Application.Handlers.Platforms.Queries.List.Query(); var hostApps = await _mediator.Send(hostAppGetQuery); var platforms = await

Continue reading