сдана лаб8 base
This commit is contained in:
parent
6e8a80fd57
commit
e8025281d9
@ -69,8 +69,7 @@ namespace LawFirmBusinessLogic.BusinessLogics
|
|||||||
}
|
}
|
||||||
_logger.LogDebug("Call SaveToFile method for {name} type", type.Name);
|
_logger.LogDebug("Call SaveToFile method for {name} type", type.Name);
|
||||||
// вызываем метод на выполнение
|
// вызываем метод на выполнение
|
||||||
method?.MakeGenericMethod(modelType).Invoke(this, new
|
method?.MakeGenericMethod(modelType).Invoke(this, new object[] { model.FolderName });
|
||||||
object[] { model.FolderName });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_logger.LogDebug("Create zip and remove folder");
|
_logger.LogDebug("Create zip and remove folder");
|
||||||
|
@ -20,8 +20,7 @@ namespace LawFirmDatabaseImplement.Implements
|
|||||||
var types = assembly.GetTypes();
|
var types = assembly.GetTypes();
|
||||||
foreach (var type in types)
|
foreach (var type in types)
|
||||||
{
|
{
|
||||||
if (type.IsClass &&
|
if (type.IsClass && type.GetInterface(modelInterfaceName) != null)
|
||||||
type.GetInterface(modelInterfaceName) != null)
|
|
||||||
{
|
{
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user