Пример #1
0
 public IList <DataContracts.Mapping.DC_CountryMapping> GetCountryMapping(DataContracts.Mapping.DC_CountryMappingRQ RQ)
 {
     using (BL_Mapping objBL = new BL_Mapping())
     {
         return(objBL.GetCountryMapping(RQ));
     }
 }
Пример #2
0
        public List <DataContracts.Mapping.DC_CountryMapping> GetCountryMapping(DataContracts.Mapping.DC_CountryMappingRQ RQ)
        {
            //int iPageNo;
            //int iPageSize;
            //Guid gSupplier_Id;
            //Guid gCountry_Id;

            if (RQ.PageSize <= 0)
            {
                throw new FaultException <DataContracts.DC_ErrorStatus>(new DataContracts.DC_ErrorStatus {
                    ErrorMessage = "Invalid Request", ErrorStatusCode = System.Net.HttpStatusCode.BadRequest
                });
            }
            else
            {
                using (DataLayer.DL_Mapping objBL = new DataLayer.DL_Mapping())
                {
                    return(objBL.GetCountryMapping(RQ));
                }
            }
        }