Пример #1
0
        public static string GetAreaPrice(string id, string area)
        {
            string sql = string.Format("select Price from  sys_product_price where PID='{0}' and AreaName='{1}'", id, area);
            object obj = sqlRep.GetSingle(sql);

            if (obj == null)
            {
                return("");
            }
            return(obj.ToString());
        }
Пример #2
0
 public static object SGetSingle(string sql)
 {
     return(rep.GetSingle(sql));
 }
Пример #3
0
 public object GetSingle(string sql)
 {
     return(repository.GetSingle(sql));
 }