public class UtilityController : Controller { // // GET: /Utility/ public ContentResult SvgBuilder(string stops) { string[] values = stops.Split(new Char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); var sb = new StringBuilder(); sb.Append(""); sb.AppendLine(); sb.Append(""); sb.AppendLine(); sb.Append(""); sb.AppendLine(); foreach (var val in values) { string[] items = val.Split(new Char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); sb.Append(""); sb.AppendLine(); } sb.Append(""); sb.AppendLine(); sb.Append(""); sb.AppendLine(); sb.Append(""); sb.AppendLine(); sb.Append(""); sb.AppendLine(); return Content(sb.ToString(), "image/svg+xml"); } }