I my view model(LIST) looks like this:
public class ConversationModel
{
public int ID { get; set; }
public string Body { get; set; }
public DateTime Datetime { get; set; }
public string Username { get; set; }
public string ImgUrl { get; set; }
public string ToUserID{ get; set; }
}
this is my view
@model IEnumerable<NGGmvc.Models.ConversationModel>
how i can get ToUserID on current postion? something like this
@Model[0].ToUserID
Thanks