Example #1
0
        /// <summary>
        /// 根据商家id得到商家基本信息
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public static B2b_company GetCompany(int companyid)
        {
            using (var sql = new SqlHelper())
            {
                try
                {
                    var         internalData = new InternalB2bCompany(sql);
                    B2b_company result       = internalData.GetCompany(companyid);

                    return(result);
                }
                catch
                {
                    throw;
                }
            }
        }
Example #2
0
 public static B2b_company GetAllComMsg(int comid)
 {
     using (var sql = new SqlHelper())
     {
         try
         {
             var         internalData = new InternalB2bCompany(sql);
             B2b_company com          = internalData.GetCompany(comid);
             if (com != null)
             {
                 com.B2bcompanyinfo = new InternalB2bCompanyInfo(sql).GetCompanyInfo(comid);
             }
             return(com);
         }
         catch
         {
             throw;
         }
     }
 }