常用方法
常用方法
常用方法
常用方法
public async Task <IHttpActionResult> AddComment(string videoId, string userId, string commentText) { try { var video = await _videoService.AddComment(videoId, userId, commentText); return(video == null?NotFound() : (IHttpActionResult)Ok(video)); } catch (InvalidOperationException ex) { return(InternalServerError(ex)); } }