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