예제 #1
0
 public IHttpActionResult Get(int id)
 {
     try
     {
         var staff = service.GetBuyId(id);
         if (staff == null)
         {
             return(NotFound());
         }
         return(Ok(new StaffDto(staff)));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }