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