예제 #1
0
 public IActionResult Post([FromBody] Set set)
 {
     try
     {
         return(Ok(_setService.Add(set).ToApiModel()));
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("PostSet", ex.StackTrace);
         return(BadRequest(ModelState));
     }
 }