示例#1
0
 public IHttpActionResult DeleteByStoryId(int?storyid)
 {
     if (storyid == null)
     {
         return(BadRequest());
     }
     try
     {
         _storyService.DeleteByStoryId(storyid);
         return(Ok());
     }
     catch (InvalidOperationException ex)
     {
         return(InternalServerError(ex));
     }
 }