Brzytwa asp.net mvc 3 pobiera jeden element z IEnumerable
Mój model widoku (LISTA) wygląda tak:
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; }
}
to jest mój pogląd
@model IEnumerable<NGGmvc.Models.ConversationModel>
jak mogę uzyskać identyfikator ToUserID na bieżącym stanowisku? coś takiego
@Model [0] .ToUserID
Dzięki