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