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 }); }
- Program preparation starts from designing the sub-problems.
- The solutions are clubbed in the main coordinating module.
- The composition of solutions is generalized for main solution.
- Program is structured as hierarchy of various tasks but viewed from bottom to upper level.
- As the technique moves from bottom to top it is a type of generalization.
- Main module can only be designed after the detailed design of sub-problems.
- The tested sub-programs are used to frame the main solution.
- Integration test is performed at the final stage of programming.
- The code of the sub-problems are reusable.
- The modules linking details is not available at the lower stage of programming.
- This type of programming technique is most popular in Object Oriented Programming using C++ and Java.
Comments
Post a Comment