Developer 02 d6b08c3c30 refactor: CRUD-Services und -Interfaces für alle außer Module und ModuleOfUser von IService und Service vererbt
- Vererbung von IService und Service auf alle CRUD-Services und -Interfaces angewendet, mit Ausnahme von Module und ModuleOfUser.
2024-08-14 19:08:43 +02:00

19 lines
825 B
C#

using DigitalData.Core.Abstractions.Application;
using DigitalData.UserManager.Application.DTOs.GroupOfUser;
using DigitalData.UserManager.Domain.Entities;
using DigitalData.Core.DTO;
using DigitalData.UserManager.Application.Services;
namespace DigitalData.UserManager.Application.Contracts
{
public interface IGroupOfUserService : IBaseService<GroupOfUserCreateDto, GroupOfUserReadDto, GroupOfUserUpdateDto, 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);
}
}