35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace LCU.Library.Internal.IncentiveApiModels.Entities
|
|
{
|
|
public class Region
|
|
{
|
|
public string Name { get; }
|
|
public string Code { get; }
|
|
public string BusinessLineCode { get; }
|
|
|
|
private Region(string name, string code, string businessLineCode)
|
|
{
|
|
Name = name;
|
|
Code = code;
|
|
BusinessLineCode = businessLineCode;
|
|
}
|
|
|
|
public static Region East = new Region("East", "EAST", BusinessLine.BranchOperations.Code);
|
|
public static Region North = new Region("North", "NORTH", BusinessLine.BranchOperations.Code);
|
|
public static Region South = new Region("South", "SOUTH", BusinessLine.BranchOperations.Code);
|
|
public static Region West = new Region("West", "WEST", BusinessLine.BranchOperations.Code);
|
|
|
|
public static List<Region> Regions = new List<Region>
|
|
{
|
|
East,
|
|
North,
|
|
South,
|
|
West
|
|
};
|
|
|
|
public static Region FindByCode(string code) => Regions.FirstOrDefault(region => region.Code == code);
|
|
}
|
|
}
|