I have the following code in a Partial View that is Rendered inside of another Partial View that is used as the _layout for all views in the project. There is a textarea for comments. I need to get the value of the Textarea to the Action Method in my controller. There is no ViewModel, so I don't know how to capture the contents.
<h4> Application Notes </h4>
<a href="#" class="icon-print"></a>
@using (@Html.BeginForm("Comment", "LoanApplication"))
@*<textarea cols="100" rows="2" name="Comment" placeholder="Leave Comment ..."></textarea>*@
<input value="Add Comment" type="submit" />
The controller code is :
public async Task<ActionResult> Comment(string comment)
var loanApplicationServiceProxy = base.ServiceProvider.LoanApplicationServiceProxy;
var applicationComment = new LoanApplicationComment
It seems as if it should be something easy, but I can't seem to figure it out. Thanks for any and all assistance.
One other thing to try is to receive a