@using System.Threading.Tasks
@using CompetitionPlatform.Helpers
@model CompetitionPlatform.Models.ProjectViewModels.ProjectCommentPartialViewModel

<form asp-controller="ProjectDetails" asp-action="AddComment" enctype="multipart/form-data">
    @if (ClaimsHelper.GetUser(User.Identity).Email != null)
    {
        <div class="form-group">
            @Html.Hidden("projectId", Model.ProjectId)
            @Html.Hidden("ParentId", Model.ParentId)
            <input asp-for="@Model.ProjectId" type="hidden" />
            <textarea asp-for="@Model.Comment" rows="5" class="form-control" placeholder="Enter your comment here..."></textarea>
        </div>
        <input type="submit" value="Post Comment" class="btn btn-primary pull-right" />
    }
</form>
Add a partial view with form to reply to comments.
Add a partial view with form to reply to comments.
