예제 #1
0
 public ActionResult <bool> PostPerson(Guid id, [FromBody] string data)
 {
     try
     {
         if (_caseRepository.AddPerson(id, data))
         {
             return(StatusCode(201, null));
         }
         else
         {
             return(StatusCode(422, null));
         }
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex.Message));
     }
 }