I want to show Components in a tabs , so first of all create few components. In this project we have three components, First View Component public class AllViewComponent : ViewComponent { private readonly UserManager<ApplicationUser> _userManager; public AllViewComponent(UserManager<ApplicationUser> userManager) { _userManager = userManager; } public async Task<IViewComponentResult> InvokeAsync() { List<StudentViewModel> allUsers = new List<StudentViewModel>(); var items = await _userManager.Users.ToListAsync(); foreach (var item in items) { allUsers.Add(new StudentViewModel {Id=item.Id, EnrollmentNo = item.EnrollmentNo, FatherName = item.FatherName, Name = item.Name, Age = item.Age, Birthdate = item.Birthdate, Address = item.Address, Gender = item.Gender, Email = item.Email }); }
- The summary of the program plan is known in advance in the form of top module.
- Parallel development of the program is possible because of independent design of the modules at different levels.
- Parallel development helps in designing the program at reduced time period.
- Testing and debugging are faster because of independent testing of modules.
- Attention can be given to individual level task to improve the efficiency.
- The hierarchy of the levels helps in understandable low level modules.
- Handling and management of the modules are easy.
- This technique improves the code reliability.
Comments
Post a Comment