예제 #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()));
        }
예제 #2
0
 // GET: Owner
 public async Task <ActionResult> Index()
 {
     return(View(await ownerService.GetOwners()));
 }