SurveyVista/Services/Interaces/IPageRepository.cs
2024-02-20 18:53:54 +01:00

35 lines
558 B
C#

using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Services.Interaces
{
public interface IPageRepository
{
Task<List<Page>> GetPages();
Page GetPageById(int id);
void Add(Page page);
void Delete(int id);
void Update(Page page);
List<Page> GetPageWithBanner();
Page GetPageSlug(string slug);
bool SlugExists(string slug,int? pageIdExclude=null);
Task commitAsync();
}
}