demo20230512/Areas/Certification/Supports/ViewHelper.cs

22 lines
548 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Weee.Areas.Certification.Supports
{
public static class ViewHelper
{
public static string GetEntityCategory(string toBeAnalysis)
{
return toBeAnalysis.Split(',').First();
}
public static string GetProcessOrType(string toBeAnalysis)
{
var strings = toBeAnalysis.Split(',');
if (strings.Length > 1) return strings[1];
return strings[0];
}
}
}