using DigitalData.UserManager.Application.DTOs.GroupOfUser;
using DigitalData.UserManager.Domain.Entities;
using DigitalData.Core.Abstraction.Application.DTO;

namespace DigitalData.UserManager.Application.Contracts
{
    [Obsolete("Use MediatR")]
    public interface IGroupOfUserService : IBaseService<GroupOfUserCreateDto, GroupOfUserReadDto, GroupOfUser>
    {
        Task<Result> DeleteAsyncByGroupUserId(int groupId, int userId);

        Task<DataResult<IEnumerable<GroupOfUserReadDto>>> ReadAllAsyncWith(bool user, bool group);

        Task<Result> HasGroup(string username, string groupname, bool caseSensitive = true);

        Task<DataResult<IEnumerable<GroupOfUserReadDto>>> ReadByUsernameAsync(string username);
    }
}