コード例 #1
0
 public IActionResult CreateItem(ItemInsert item)
 {
     try
     {
         return(new JsonResult(ItemBAL.CreateItem(item)));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Failed to create Item"));
     }
 }