Ejemplo n.º 1
0
        public async Task <ActionResult> SelectFlat(Guid PeriodId)
        {
            ViewBag.PeriodId = PeriodId;
            var flats = await buildingService.GetFlats();

            return(View(flats));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> MyFlats()
        {
            var userID = await accountService.GetUserId(User.Identity.Name);

            var ownerid = await accountService.GetOwnerId(userID);

            if (ownerid == null)
            {
                return(RedirectToAction("Index", "Home"));
            }
            return(View(await buildingService.GetFlats(ownerid)));
        }
Ejemplo n.º 3
0
 // GET: Flat
 public async Task <ActionResult> Index()
 {
     return(View(await buildingService.GetFlats()));
 }