private FacilityType GetFacilityType(string facilityType)
{
FacilityType type;
switch (facilityType)
{
case "Swale":
type = FacilityType.Swale;
break;
case "Basin":
type = FacilityType.Basin;
break;
case "Planter (Flat)":
type = FacilityType.PlanterFlat;
break;
case "Planter (Sloped)":
type = FacilityType.PlanterSloped;
break;
default:
throw new ArgumentException("Invalid facility type.");
}
return type;
}