22 lines
645 B
C#
22 lines
645 B
C#
using BlogContracts.BindingModel;
|
|
using BlogContracts.SearchModels;
|
|
using BlogContracts.ViewModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BlogContracts.StorageContracts
|
|
{
|
|
public interface INewsStorage
|
|
{
|
|
List<NewsViewModel> GetFullList();
|
|
List<NewsViewModel> GetFilteredList(NewsSearchModel model);
|
|
NewsViewModel? GetElement(NewsSearchModel model);
|
|
NewsViewModel? Insert(NewsBindingModel model);
|
|
NewsViewModel? Update(NewsBindingModel model);
|
|
NewsViewModel? Delete(NewsBindingModel model);
|
|
}
|
|
}
|