Ejemplo n.º 1
0
 /// <summary>
 /// gets Brand for name
 /// </summary>
 /// <param name="q"></param>
 /// <returns></returns>
 public string getBrandForName(string name)
 {
     SQLBrandRepository brandRepository = new SQLBrandRepository();
     var brands = brandRepository.getBrandForName(name);
     string sBrand = "";
     sBrand = sr.Serialize(brands);
     return sBrand;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// gets All Brands Like
 /// </summary>
 /// <param name="q"></param>
 /// <returns></returns>
 public string getBrandLike(string q)
 {
     //string q = "";
     SQLBrandRepository brandRepository = new SQLBrandRepository();
     var brands = brandRepository.getBrandsLike(q);
     string sBrand = "";
     //foreach (var brand in brands)
     //{
     //    sBrand = sBrand + " " + brand;
     //}
     sBrand = sr.Serialize(brands);
     return sBrand;
 }
Ejemplo n.º 3
0
 public string getBrand(int Id)
 {
     SQLBrandRepository brandRepository = new SQLBrandRepository();
     var brand = brandRepository.getBrand(Id).ToList();
     string sBrand = getBrandsHtml(brand[0]);
     return sBrand;
 }