public ResultHelper Post([FromBody] UserStarAndComment UserStarAndComment) { if (UserStarAndComment == null) { return(new ResultHelper(true, UserStarAndComment.UserStarAndCommentID, ResultHelper.UnSuccessMessage)); } userStarAndCommentService.Create(UserStarAndComment); return(new ResultHelper(true, UserStarAndComment.UserStarAndCommentID, ResultHelper.SuccessMessage)); }
public ResultHelper Delete(int id) { UserStarAndComment UserStarAndComment = userStarAndCommentService.Get(id); if (UserStarAndComment == null) { return(new ResultHelper(true, UserStarAndComment.UserStarAndCommentID, ResultHelper.UnSuccessMessage)); } userStarAndCommentService.Delete(UserStarAndComment); return(new ResultHelper(true, UserStarAndComment.UserStarAndCommentID, ResultHelper.SuccessMessage)); }