コード例 #1
0
 private static GoogleMapViewModel ConvertToViewModel(GoogleMapDto dto)
 {
     return(new GoogleMapViewModel
     {
         Center = dto.Center,
         Markers = dto.Positions
     });
 }
コード例 #2
0
 private static GoogleMapViewModel ConvertToViewModel(GoogleMapDto dto)
 {
     return new GoogleMapViewModel
     {
         Center = dto.Center,
         Markers = dto.Positions
     };
 }
コード例 #3
0
        public ActionResult GoogleMap(Position center)
        {
            GoogleMapUco uco = new GoogleMapUco();

            GoogleMapDto dto = uco.GetViewModel(center);

            GoogleMapViewModel vm = ConvertToViewModel(dto);

            return(View("GoogleMap", vm));
        }