// GET: Resources public ActionResult Index() { var ListResources = new List <ResourcesVM>(); var listResourcesDomain = ResourcesService.GetMany(); foreach (Resources r in listResourcesDomain) { ListResources.Add(new ResourcesVM() { ResourceId = r.ResourceId, TypeResource = r.TypeResource, Date_Location = r.Date_Location, Latitude = r.Latitude.ToString().Replace(",", "."), Longitude = r.Longitude.ToString().Replace(",", "."), Description = r.Description }); } return(View(ListResources)); }