Is it possible that the InputSelect now support the type System.Int32? I copied all the code in my own test solution, but do not get the error that the InputSelect is not accepting Int32.
@@charles-y2z6c No its not. Ideally, we should have folder for each component and a folder to keep components of a module. It's not great in terms of code organization. Repository pattern is always great though.
Hi Sir, I am facing error "CS1061 'Department' does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter' accepting a first argument of type 'Department' could be found (are you missing a using directive or an assembly reference?)" could you please help...
use FirstOrDefaultAsync method in GetDepartment and ToListAsync() in GetDepartments as following. public async Task GetDepartment(int departmentId) { return await appDbContext.Departments .FirstOrDefaultAsync(d => d.DepartmentID == departmentId); } public async Task GetDepartments() { return await appDbContext.Departments.ToListAsync(); } This will resolve your issue.
A great answer to this is Web Assemblies. Angular is a bulky, cumbersome, mass of JS libraries. Blazor is a better user experience in so many ways because of the Web Assembly technology.