Пример #1
0
 internal static GenericFile GetGenericFile(GenericFileType fileType, GenericFileModuleType moduleType, int objectId)
 {
     using (CoreModel coreDAL = new CoreModel())
         return(coreDAL.GenericFile.FirstOrDefault(f => f.FileType == (int)fileType &&
                                                   f.ModuleType == (int)moduleType && f.ObjectId == objectId));
 }