public string GetShopNameById(int shopid) { Shop item = ShopsDAL.GetShopItem(shopid); return(item != null ? item.ShopName : ""); }
/// <summary> /// 获取折扣 /// </summary> public int GetShopZK(int shopid) { Shop item = ShopsDAL.GetShopItem(shopid); return(item != null ? item.zk : 0); }
/// <summary> /// 获取实体对象 /// </summary> /// <param name="shopid">店铺ID</param> /// <returns></returns> public Shop GetShopItem(int shopid) { return(ShopsDAL.GetShopItem(shopid)); }