Пример #1
0
 public bool SaveStorePro(int systemId, string companyId, string storeId, string storeName, string logo, string contacts, string tel, string fax, string phone, string email, int provinceId, int cityId, int areaId, string address, string keyword, string description, DateTime startTime, DateTime endTime, bool push, int sort, bool state)
 {
     try
     {
         int    errCode = -1;
         string errMsg  = "fail";
         var    result  = CTMSContext.SP_Add_Institution_Store(systemId, companyId, storeId, storeName, logo, contacts, tel, fax, phone, email, provinceId, cityId, areaId, address, keyword, description, startTime, endTime, push, sort, 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);
     }
 }