0
我是使用ASP.NET MVC3的绝对新手,我很难找出如何做一些可能非常简单的事情。Razor中对象的用户特定值
这是我的公共类:
public class Proposal
{
ProposalDBEntities proposalDB =
new ProposalDBEntities();
public int ID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public DateTime Target_Finish_Date { get; set; }
public decimal Estimated_Cost { get; set; }
public int Staffing { get; set; }
public decimal Maintenance { get; set; }
public DateTime Date_Added { get; set; }
public int Rating { get; set; }
public decimal VoteAverage { get; set; }
}
我只是想登录的用户的个人可以设置公众诠释评级的价值。也就是说,如果用户将其设置为37,他将在登录时看到值37.但另一个将其设置为50的用户将看到50.换句话说,评级的值将根据谁登录这看起来好像根本不难,但我不知道从哪里开始。任何帮助将不胜感激。