Ejemplo n.º 1
0
        public async Task <ActionResult> Index()
        {
            ViewBag.StatusMessage = TempData["StatusMessage"] ?? string.Empty;

            var email = User.Identity.Name;

            var tenants = await tenantsRepository.GetUserTenants(email);

            var model = new TenantsHomeViewModel()
            {
                Tenants = tenants.OrderBy(t => t.Timestamp).ToList()
            };

            return(View(model));
        }