コード例 #1
0
 public async Task <int> AddNewPost([FromBody] Post obj)
 {
     try
     {
         DynamicComponentController controller = new DynamicComponentController();
         return(await controller.AddNewPost(obj, GetSiteID, GetUsername));
     }
     catch (Exception ex)
     {
         ProcessException(ex);
         return(0);
     }
 }