Beispiel #1
0
        public async Task <bool> AddOjReview([FromRoute] string ojId, [FromRoute] string review)
        {
            if (review.Length > 100)
            {
                return(false);
            }

            var userInfo = sessionUtils.GetCachedUserInfo(HttpContext);

            if (userInfo == null)
            {
                return(false);
            }
            return(await reviewService.AddOjReview(ojId, userInfo.Id, review));
        }