StoragesContracts
This commit is contained in:
parent
37d6af4bc5
commit
448b5de277
21
Forum/ForumContracts/StoragesContracts/ICategoryStorage.cs
Normal file
21
Forum/ForumContracts/StoragesContracts/ICategoryStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
21
Forum/ForumContracts/StoragesContracts/IMessageStorage.cs
Normal file
21
Forum/ForumContracts/StoragesContracts/IMessageStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
21
Forum/ForumContracts/StoragesContracts/IRoleStorage.cs
Normal file
21
Forum/ForumContracts/StoragesContracts/IRoleStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
21
Forum/ForumContracts/StoragesContracts/ITopicStorage.cs
Normal file
21
Forum/ForumContracts/StoragesContracts/ITopicStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
21
Forum/ForumContracts/StoragesContracts/IUserStorage.cs
Normal file
21
Forum/ForumContracts/StoragesContracts/IUserStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user