【发布时间】:2015-03-09 00:22:20
【问题描述】:
我有视图模型:
public class PartnerSearchResultVM
{
public int Id { get; set; }
public string Name { get; set; }
public string Latitude { get; set; }
public string Longitude { get; set; }
public double Distance { get; set; }
public string Classification { get; set; }
}
我从数据库中得到的距离是这样的:2354,58764478263 m
我要介绍 2.35 公里
如何更改 Viewmodel 以在那里进行转换(如果它是最好的地方)
【问题讨论】:
-
您的仪表中的
,是一个错误,还是您实际上是在切换区域设置以及距离转换?
标签: c# asp.net-mvc viewmodel