public JsonResult GetMountainData(MountainViewModel mountain)
        {
            var service = new MountainService();
            var data    = service.GetMountainData(mountain.id);

            data.MountainData   = null;
            data.detailsHeights = null;
            return(Json(data));
        }
        public JsonResult GetMountainGCode(MountainViewModel mountain)
        {
            var service      = new MountainService();
            var mountainData = new MountainData();
            var mData        = service.GetMountainData(mountain.id);
            var processor    = new GCodeProcessor();
            var gCode        = processor.GetMountainGCode(mData.MountainData, new GCodeConfiguration
            {
                FormSizeMMHeight = 40,
                FormSizeMMLength = 70,
                FormSizeMMWidth  = 70,
                CleanSpinSizeMM  = 6
            });

            ExportGCodeMovesToFile(gCode.PreparationMoves, @"C:\tfs\k2_prep.txt");
            ExportGCodeMovesToFile(gCode.DirtyMoves, @"C:\tfs\k2_dirty.txt");
            ExportGCodeMovesToFile(gCode.CleanMoves, @"C:\tfs\k2_clean.txt");
            return(Json("OK"));
        }