storage
This commit is contained in:
parent
a9a6a716ce
commit
2dc557f04b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
22
SportCompetitionsContracts/StoragesContracts/ITeamStorage.cs
Normal file
22
SportCompetitionsContracts/StoragesContracts/ITeamStorage.cs
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user