Adding
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user