Пример #1
0
 public List <DataContracts.Masters.DC_Supplier> Master_GetSupplier_ByCode(string Code)
 {
     using (BAL.BL_Masters objBL = new BAL.BL_Masters())
     {
         var result = objBL.Master_GetSupplier_ByCode(Code);
         return(result);
     }
 }
Пример #2
0
 public List <DataContracts.Masters.DC_City> Master_GetCities_ByCountryName(string CountryName)
 {
     using (BAL.BL_Masters objBL = new BAL.BL_Masters())
     {
         var result = objBL.Master_GetCities_ByCountryName(CountryName);
         return(result);
     }
 }
Пример #3
0
 public List <DataContracts.Masters.DC_Supplier> Master_GetAllSupplier()
 {
     using (BAL.BL_Masters objBL = new BAL.BL_Masters())
     {
         var result = objBL.Master_GetAllSupplier();
         return(result);
     }
 }
Пример #4
0
        public List <DataContracts.Masters.DC_Country> Master_GetCountries()
        {
            //if(WebOperationContext.Current.IncomingRequest.UriTemplateMatch.RequestUri.AbsoluteUri.EndsWith("xml"))
            //{
            //    WebOperationContext.Current.OutgoingResponse.Format = WebMessageFormat.Xml;
            //}
            //else if (WebOperationContext.Current.IncomingRequest.UriTemplateMatch.RequestUri.AbsoluteUri.EndsWith("json"))
            //{
            //    WebOperationContext.Current.OutgoingResponse.Format = WebMessageFormat.Json;
            //}
            //else if (WebOperationContext.Current.IncomingRequest.UriTemplateMatch.RequestUri.AbsoluteUri.EndsWith("jsonp"))
            //{
            //    WebOperationContext.Current.OutgoingResponse.ContentType = "application/javascript";
            //}

            using (BAL.BL_Masters objBL = new BAL.BL_Masters())
            {
                var result = objBL.Master_GetCountries();
                //var stream = new MemoryStream(Encoding.UTF8.GetBytes());
                return(result);
            }
        }