StoragesContracts

This commit is contained in:
ArtemEmelyanov 2023-04-28 20:07:07 +04:00
parent 37d6af4bc5
commit 448b5de277
5 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using ForumContracts.BindingModels;
using ForumContracts.SearchModels;
using ForumContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.StoragesContracts
{
public interface ICategoryStorage
{
List<CategoryViewModel> GetFullList();
List<CategoryViewModel> GetFilteredList(CategorySearchModel model);
CategoryViewModel? GetElement(CategorySearchModel model);
CategoryViewModel? Insert(CategoryBindingModel model);
CategoryViewModel? Update(CategoryBindingModel model);
CategoryViewModel? Delete(CategoryBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using ForumContracts.BindingModels;
using ForumContracts.SearchModels;
using ForumContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.StoragesContracts
{
public interface IMessageStorage
{
List<MessageViewModel> GetFullList();
List<MessageViewModel> GetFilteredList(MessageSearchModel model);
MessageViewModel? GetElement(MessageSearchModel model);
MessageViewModel? Insert(MessageBindingModel model);
MessageViewModel? Update(MessageBindingModel model);
MessageViewModel? Delete(MessageBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using ForumContracts.BindingModels;
using ForumContracts.SearchModels;
using ForumContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.StoragesContracts
{
public interface IRoleStorage
{
List<RoleViewModel> GetFullList();
List<RoleViewModel> GetFilteredList(RoleSearchModel model);
RoleViewModel? GetElement(RoleSearchModel model);
RoleViewModel? Insert(RoleBindingModel model);
RoleViewModel? Update(RoleBindingModel model);
RoleViewModel? Delete(RoleBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using ForumContracts.BindingModels;
using ForumContracts.SearchModels;
using ForumContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.StoragesContracts
{
public interface ITopicStorage
{
List<TopicViewModel> GetFullList();
List<TopicViewModel> GetFilteredList(TopicSearchModel model);
TopicViewModel? GetElement(TopicSearchModel model);
TopicViewModel? Insert(TopicBindingModel model);
TopicViewModel? Update(TopicBindingModel model);
TopicViewModel? Delete(TopicBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using ForumContracts.BindingModels;
using ForumContracts.SearchModels;
using ForumContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ForumContracts.StoragesContracts
{
public interface IUserStorage
{
List<UserViewModel> GetFullList();
List<UserViewModel> GetFilteredList(UserSearchModel model);
UserViewModel? GetElement(UserSearchModel model);
UserViewModel? Insert(UserBindingModel model);
UserViewModel? Update(UserBindingModel model);
UserViewModel? Delete(UserBindingModel model);
}
}