Пример #1
0
 public bool SaveCompanyRegisterPro(int systemId, string dealerId, int classId, string companyName, string password, string nickName, string phone, string email, string registerIpAddress)
 {
     try
     {
         int    errCode = -1;
         string errMsg  = "fail";
         var    result  = CTMSContext.SP_Add_Institution_CompanyRegister(systemId, dealerId, classId, companyName, password, nickName, phone, email, registerIpAddress, out errCode, out errMsg);
         if (errCode != 0)
         {
             throw new Exception(errMsg);
         }
         return(errCode == 0 ? true : false);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }