//Tenant profile ------------------------------------------------------------------------------------
        public ActionResult TenantProfile(string UserID)
        {

            var T = db.Tenant.Find(UserID);
            var A = db.Apartment.Find(T.Apartment.ID);
            var B = db.Buildings.Find(A.Buildings.ID);
            var M = db.Module.Where(c => c.BuildingID == B.ID).ToList();

            var FT = new TenantFrontEnd();
            FT.tenant = T;
            FT.apartment = A;
            FT.building = B;
            FT.modules = M;
            return View(FT);
        }
        public ActionResult TenantIndex(string TenantID)
        {   //TODO: Tenant Dashboard

            var T = db.Tenant.Find(TenantID);
            var A = db.Apartment.Find(T.Apartment.ID);
            var B = db.Buildings.Find(A.Buildings.ID);
            var M = db.Module.Where(c => c.BuildingID == B.ID).ToList();

            var FT = new TenantFrontEnd();
            FT.tenant = T;
            FT.apartment = A;
            FT.building = B;
            FT.modules = M;
            //TenantIndexVM TIvm = new TenantIndexVM();
            return View(FT);
        }