add interfaces for backup

This commit is contained in:
DavidMakarov 2024-05-16 17:09:19 +04:00
parent 513bcc2ec0
commit 596402e69e
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,7 @@
namespace FlowerShopContracts.BindingModels
{
public class BackUpSaveBinidngModel
{
public string FolderName { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,10 @@
using FlowerShopContracts.BindingModels;
namespace FlowerShopContracts.BusinessLogicsContracts
{
public interface IBackUpLogic
{
void CreateBackUp(BackUpSaveBinidngModel model);
}
}

View File

@ -0,0 +1,9 @@
namespace FlowerShopContracts.StoragesContracts
{
public interface IBackUpInfo
{
List<T>? GetList<T>() where T : class, new();
Type? GetTypeByModelInterface(string modelInterfaceName);
}
}