コード例 #1
0
        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));
            }
        }
コード例 #2
0
 public async Task <OperationResult <IKeyedDto> > GetAsync(string key)
 {
     return(await _service.GetByKeyAsync(key));
 }