예제 #1
0
        public IEnumerable <lut_general_usages> GetTable(string TableName)
        {
            try
            {
                CodesDAL codes = new CodesDAL();

                if (string.IsNullOrEmpty(TableName))
                {
                    throw new ArgumentException("TableName is mandatory");
                }
                else
                {
                    return(codes.lut_general_usages_GetTable(TableName));
                }
            }
            catch
            {
                throw;
            }
        }
예제 #2
0
        public IEnumerable <lut_organizationtype> GetOrganizationType(string identifier)
        {
            try
            {
                CodesDAL codes = new CodesDAL();

                if (string.IsNullOrEmpty(identifier))
                {
                    return(codes.lut_organizationtype_GetAll());
                }
                else
                {
                    lut_organizationtype FilterObj = lut_organizationtypeConverter.ConvertParams(identifier);
                    return(codes.lut_organizationtype_Filter(FilterObj));
                }
            }
            catch
            {
                throw;
            }
        }
예제 #3
0
        public IEnumerable <lut_city> GetCity(string Identifier)
        {
            try
            {
                CodesDAL codesDAL = new CodesDAL();

                if (string.IsNullOrEmpty(Identifier))
                {
                    return(codesDAL.lut_city_GetAll());
                }
                else
                {
                    lut_city FilterObj = lut_cityConverter.ConvertParams(Identifier);
                    return(codesDAL.lut_city_Filter(FilterObj));
                }
            }
            catch
            {
                throw;
            }
        }