public async Task <IActionResult> OnGet(string id) { _protocolEntry = await _entryRepository.GetById(id); if (_protocolEntry is null) { return(NotFound()); } Id = id; Suspect = _protocolEntry.Suspect; Entry = _protocolEntry.Entry; TimeStamp = _protocolEntry.TimeStamp; return(Page()); }
public Task <SilentProtocolEntry> GetById(string id) { return(_subject.GetById(id)); }