Ejemplo n.º 1
0
        public async Task <ActionResult> SelectOwner(Guid flatId)
        {
            ViewBag.flatId = flatId;
            var flat = await buildingService.GetFlatDTO(flatId);

            ViewBag.HasOwner = false;
            if (flat.OwnersId.HasValue)
            {
                ViewBag.HasOwner = true;
            }
            return(View(await ownerService.GetOwners()));
        }
Ejemplo n.º 2
0
 // GET: Owner
 public async Task <ActionResult> Index()
 {
     return(View(await ownerService.GetOwners()));
 }