Ejemplo n.º 1
0
        public async Task <IActionResult> CreateCourseWorkBid(long courseWorkId, string biddingValueString)
        {
            if (!Enum.TryParse <BiddingValues>(biddingValueString, out var biddingValue))
            {
                return(NotFound());
            }
            var userId = Request.GetUserId();

            await _reviewService.CreateCourseWorkBid(userId, courseWorkId, biddingValue).ConfigureAwait(false);

            return(Ok());
        }