Ejemplo n.º 1
0
 /// <summary>
 /// 删除评价
 /// </summary>
 public void DelCrmEvaInfo(string ids)
 {
     try
     {
         if (!string.IsNullOrEmpty(ids))
         {
             string[] arr = ids.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
             if (arr?.Length > 0)
             {
                 for (int i = 0; i < arr.Length; i++)
                 {
                     var entity = _crmEvaMstrRepository.Get(arr[i]);
                     _crmEvaMstrRepository.Delete(entity);
                 }
             }
         }
         else
         {
             throw new Exception("参数不能为空");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }