public string GetProName(int proid)
 {
     var proEntity = new Bll.Db.ProductBll().GetByPrimaryKey(proid).Entity;
     if (proEntity != null)
         return proEntity.ProductName;
     else
         return "";
 }
示例#2
0
        public string GetProName(int proid)
        {
            var proEntity = new Bll.Db.ProductBll().GetByPrimaryKey(proid).Entity;

            if (proEntity != null)
            {
                return(proEntity.ProductName);
            }
            else
            {
                return("");
            }
        }