Error I am getting:
ErrorThe type arguments for method 'System.Net.Http.HttpRequestMessageExtensions.CreateResponse
var ret = new
{
CommentedBy = postcomment.CommentedBy,
CommentedByName = usr.Fullname,
//CommentedByAvatar = imgFolder + (String.IsNullOrEmpty(usr.AvatarExt) ? defaultAvatar : postcomment.CommentedBy + "." + postcomment.UserProfile.AvatarExt),
CommentedByAvatar = imgFolder + (String.IsNullOrEmpty(usr.AvatarExt) ? defaultAvatar : postcomment.CommentedBy + "." + postcomment.UserProfile.AvatarExt),
CommentedDate = postcomment.CommentedDate,
CommentId = postcomment.CommentId,
Message = postcomment.Message,
PostId = postcomment.PostId
};
HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, ret);
Replies
Know the answer? Post it — somebody with the same question will find it here.