My Code :-
if (TryUpdateModel(model))
{
//My Logic
}
else
{
ActivityLogger.LogActivity("HandleReceiverAddressSubmitted Method" + ModelState.Values);
}
Here in "ModelState.Values" rather then giving the actual error message its showing as 'System.Collections.Generic.Dictionary`2+ValueCollection'
Could you please help me how do I Log the error message If any error occurred in the TryUpdateModel in MVC4 in my code.

Hiten PandyaRank #1,237 · 1.4K reputationPosted Jan 30, 2018, 6:03 PM EST