Example #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());
        }
 public static object SGetSingle(string sql)
 {
     return(rep.GetSingle(sql));
 }
 public object GetSingle(string sql)
 {
     return(repository.GetSingle(sql));
 }