public async Task <IActionResult> OnGetAsync(string key) { if (string.IsNullOrEmpty(key)) { return(NotFound()); } var s = await _service.GetByKeyAsync(key); if (s == OperationStatus.OK) { FilmPersonToDelete = _service.GetByKeyResult(key); return(Page()); } else { return(HandleError(s, _action)); } }
public async Task <OperationResult <IKeyedDto> > GetAsync(string key) { return(await _service.GetByKeyAsync(key)); }