Beispiel #1
0
 public bool DelFmsAssetCommParam(string Id)
 {
     using (IFmsAssetCommParamBLL FmsAssetCommParamBLL = BLLContainer.Resolve <IFmsAssetCommParamBLL>())
     {
         try
         {
             FmsAssetCommParam item = FmsAssetCommParamBLL.GetFirstOrDefault(Id);
             return(FmsAssetCommParamBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Beispiel #2
0
 public bool DelFmsAssetCommParams(string[] Ids)
 {
     using (IFmsAssetCommParamBLL FmsAssetCommParamBLL = BLLContainer.Resolve <IFmsAssetCommParamBLL>())
     {
         try
         {
             List <FmsAssetCommParam> entitys = new List <FmsAssetCommParam>();
             foreach (string id in Ids)
             {
                 FmsAssetCommParam item = FmsAssetCommParamBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(FmsAssetCommParamBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }