This commit is contained in:
Леонид Малафеев 2024-04-23 18:41:38 +04:00
parent a9a6a716ce
commit 2dc557f04b
13 changed files with 110 additions and 0 deletions

View File

@ -0,0 +1,22 @@
using SportCompetitionsContracts.BindingModels;
using SportCompetitionsContracts.SearchModels;
using SportCompetitionsContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SportCompetitionsContracts.StoragesContracts
{
public interface ICompetitionStorage
{
List<CompetitionViewModel> GetFullList();
List<CompetitionViewModel> GetFilteredList(CompetitionSearchModel model);
CompetitionViewModel? GetElement(CompetitionSearchModel model);
CompetitionViewModel? Insert(CompetitionBindingModel model);
CompetitionViewModel? Update(CompetitionBindingModel model);
CompetitionViewModel? Delete(CompetitionBindingModel model);
}
}

View File

@ -0,0 +1,22 @@
using SportCompetitionsContracts.BindingModels;
using SportCompetitionsContracts.SearchModels;
using SportCompetitionsContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SportCompetitionsContracts.StoragesContracts
{
public interface IMemberStorage
{
List<MemberViewModel> GetFullList();
List<MemberViewModel> GetFilteredList(MemberSearchModel model);
MemberViewModel? GetElement(MemberSearchModel model);
MemberViewModel? Insert(MemberBindingModel model);
MemberViewModel? Update(MemberBindingModel model);
MemberViewModel? Delete(MemberBindingModel model);
}
}

View File

@ -0,0 +1,22 @@
using SportCompetitionsContracts.BindingModels;
using SportCompetitionsContracts.SearchModels;
using SportCompetitionsContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SportCompetitionsContracts.StoragesContracts
{
public interface IRecordStorage
{
List<RecordViewModel> GetFullList();
List<RecordViewModel> GetFilteredList(RecordSearchModel model);
RecordViewModel? GetElement(RecordSearchModel model);
RecordViewModel? Insert(RecordBindingModel model);
RecordViewModel? Update(RecordBindingModel model);
RecordViewModel? Delete(RecordBindingModel model);
}
}

View File

@ -0,0 +1,22 @@
using SportCompetitionsContracts.BindingModels;
using SportCompetitionsContracts.SearchModels;
using SportCompetitionsContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SportCompetitionsContracts.StoragesContracts
{
public interface IResultStorage
{
List<ResultViewModel> GetFullList();
List<ResultViewModel> GetFilteredList(ResultSearchModel model);
ResultViewModel? GetElement(ResultSearchModel model);
ResultViewModel? Insert(ResultBindingModel model);
ResultViewModel? Update(ResultBindingModel model);
ResultViewModel? Delete(ResultBindingModel model);
}
}

View File

@ -0,0 +1,22 @@
using SportCompetitionsContracts.BindingModels;
using SportCompetitionsContracts.SearchModels;
using SportCompetitionsContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SportCompetitionsContracts.StoragesContracts
{
public interface ITeamStorage
{
List<TeamViewModel> GetFullList();
List<TeamViewModel> GetFilteredList(TeamSearchModel model);
TeamViewModel? GetElement(TeamSearchModel model);
TeamViewModel? Insert(TeamBindingModel model);
TeamViewModel? Update(TeamBindingModel model);
TeamViewModel? Delete(TeamBindingModel model);
}
}