public async Task <IActionResult> Details(Guid?Id) { if (Id == null || !_clientService.ClientExists((Guid)Id)) { return(NotFound()); } return(View(await _clientService.GetClientDetails((Guid)Id))); }