22 lines
548 B
C#
22 lines
548 B
C#
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];
|
|
}
|
|
}
|
|
} |