예제 #1
0
 public IHttpActionResult DeleteByUserId(string userId)
 {
     if (userId == null)
     {
         return(BadRequest());
     }
     try
     {
         _storyService.DeleteByUserId(userId);
         return(Ok());
     }
     catch (InvalidOperationException ex)
     {
         return(InternalServerError(ex));
     }
 }