コード例 #1
0
 public async Task <ActionResult <Appointment> > GetById(int id)
 {
     try
     {
         return(await _appointmentService.FindOneByIdAsync(id));
     }
     catch
     {
         return(NotFound());
     }
 }