public IActionResult Read(long id)
 {
     return(_repository.Contains(id) ? (IActionResult)Ok(_repository.Find(id)) : NotFound());
 }
Beispiel #2
0
 public IActionResult Read(long id)
 {
     _opCounter.Increment(TrackedOperation.Read);
     return(_timeEntryRepository.Contains(id) ? (IActionResult)Ok(_timeEntryRepository.Find(id)) : NotFound());
 }
Beispiel #3
0
 public IActionResult Read(int id)
 {
     _operationCounter.Increment(TrackedOperation.Read);
     return(Repository.Contains(id) ? (IActionResult)Ok(Repository.Find(id)) : NotFound());
 }