public IList <DataContracts.Mapping.DC_CountryMapping> GetCountryMapping(DataContracts.Mapping.DC_CountryMappingRQ RQ) { using (BL_Mapping objBL = new BL_Mapping()) { return(objBL.GetCountryMapping(RQ)); } }
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)); } } }