Пример #1
0
 public bool SaveRankPro(int systemId, string companyId, string rankName, int maxPoints, int discount, int showPrice, string remark, bool state)
 {
     try
     {
         int    errCode = -1;
         string errMsg  = "fail";
         var    result  = CTMSContext.SP_Add_Member_Rank(systemId, companyId, rankName, maxPoints, discount, showPrice, remark, state, out errCode, out errMsg);
         if (errCode != 0)
         {
             throw new Exception(errMsg);
         }
         return(errCode == 0 ? true : false);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }