Example #1
0
        public static List <AreaContract> GetAreas(AreaTypesEnum type, RecordTypesEnum recordType)
        {
            switch (type)
            {
            case AreaTypesEnum.Region:
                return(GetAreasByCode((int)AreaTypesEnum.Region, recordType));

            case AreaTypesEnum.Municipality:
                return(GetAreasByCode((int)AreaTypesEnum.Municipality, recordType));

            case AreaTypesEnum.MunicipalCenter:
                return(GetAreasByCode((int)AreaTypesEnum.MunicipalCenter, recordType));

            case AreaTypesEnum.Town:
                return(GetAreasByCode((int)AreaTypesEnum.Town, recordType));

            case AreaTypesEnum.Village:
                return(GetAreasByCode((int)AreaTypesEnum.Village, recordType));

            case AreaTypesEnum.Country:
                return(GetAreasByCode((int)AreaTypesEnum.Country, recordType));
            }

            return(null);
        }
 public static List <AreaContract> GetAreas(AreaTypesEnum type, RecordTypesEnum recordType)
 {
     return(CommonDataManager.GetAreas(type, recordType));
 }
Example #3
0
 public static List <AreaContract> GetAreas(AreaTypesEnum type, RecordTypesEnum recordType)
 {
     return(RpcInvoker.InvokeMethod <List <AreaContract> >(type, recordType));
 }