сдана лаб8 base

This commit is contained in:
Данила Мочалов 2023-04-24 09:04:18 +04:00
parent 6e8a80fd57
commit e8025281d9
2 changed files with 2 additions and 4 deletions

View File

@ -69,8 +69,7 @@ namespace LawFirmBusinessLogic.BusinessLogics
}
_logger.LogDebug("Call SaveToFile method for {name} type", type.Name);
// вызываем метод на выполнение
method?.MakeGenericMethod(modelType).Invoke(this, new
object[] { model.FolderName });
method?.MakeGenericMethod(modelType).Invoke(this, new object[] { model.FolderName });
}
}
_logger.LogDebug("Create zip and remove folder");

View File

@ -20,8 +20,7 @@ namespace LawFirmDatabaseImplement.Implements
var types = assembly.GetTypes();
foreach (var type in types)
{
if (type.IsClass &&
type.GetInterface(modelInterfaceName) != null)
if (type.IsClass && type.GetInterface(modelInterfaceName) != null)
{
return type;
}