Skip to content
Snippets Groups Projects
IForumService.cs 642 B
Newer Older
esantangelo's avatar
esantangelo committed
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Tsi1.BusinessLayer.Dtos;
using Tsi1.BusinessLayer.Helpers;
using Tsi1.DataLayer.Entities;

namespace Tsi1.BusinessLayer.Interfaces
{
    public interface IForumService
    {
Lucca Santangelo's avatar
Lucca Santangelo committed
        Task<ServiceResult<List<ForumPreviewDto>>> GetForums(int sectionId);
esantangelo's avatar
esantangelo committed

        Task<ServiceResult<int>> Create(ForumCreateDto newForum);
esantangelo's avatar
esantangelo committed

        Task<ServiceResult<Forum>> Delete(int forumId);

        Task<ServiceResult<List<string>>> GetSubscribedUsers(int forumId);

        Task<ServiceResult<List<bool>>> Subscribe(int forumId, int userId);
esantangelo's avatar
esantangelo committed
    }
}