示例#1
0
 public FDIGetMaterial GetFDIGetMaterialById(string Id)
 {
     using (IFDIGetMaterialBLL FDIGetMaterialBLL = BLLContainer.Resolve <IFDIGetMaterialBLL>())
     {
         FDIGetMaterial model = FDIGetMaterialBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
示例#2
0
 public bool DelFDIGetMaterial(string Id)
 {
     using (IFDIGetMaterialBLL FDIGetMaterialBLL = BLLContainer.Resolve <IFDIGetMaterialBLL>())
     {
         try
         {
             FDIGetMaterial item = FDIGetMaterialBLL.GetFirstOrDefault(Id);
             return(FDIGetMaterialBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
示例#3
0
 public bool DelFDIGetMaterials(string[] Ids)
 {
     using (IFDIGetMaterialBLL FDIGetMaterialBLL = BLLContainer.Resolve <IFDIGetMaterialBLL>())
     {
         try
         {
             List <FDIGetMaterial> entitys = new List <FDIGetMaterial>();
             foreach (string id in Ids)
             {
                 FDIGetMaterial item = FDIGetMaterialBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(FDIGetMaterialBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }