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 }); }
Those operator, which is used for decrement by one in any value known as decrement operator. These are two types. Pre-Decrement operator Post-Decrement operator In pre-decrement operator appear before its operand, such as --a. Here "a" is a operand and -- is the decrement operator. In this case, value of the operand(a) will be decremented by one "after" it has been decremented. In post-decrement operator appear after its operand, such as a--. Similarly again, "a" is a operand and -- is the decrement operator.In this case, value of the operand(a) will be decremented by one "before" it has been decremented. Lets take an simple example of both pre and post decrement using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double a; a = 1.5; Console.Wri