/// <summary>
 /// Validates the specified request.
 /// </summary>
 /// <param name="request">The request.</param>
 public static void Validate(ThreadCreateRequest request)
 {
     CommentsWebServiceReflector.ValidateReflect(request);
 }
Ejemplo n.º 2
0
        public async Task<IActionResult> CreateNewThread([FromForm] ThreadCreateRequest threadCreateRequest)
        {
            var thread = await _threadCreator.CreateThreadAsync(threadCreateRequest.Title, threadCreateRequest.BeginningDate);

            return this.RedirectToAction(nameof(this.Index), new RouteValueDictionary { { "threadId", thread.ThreadId.ToString() } });
        }