Updated namespaces for DTOs and services to improve project organization. Marked several interfaces as obsolete in favor of MediatR for better request handling. Simplified `BaseUpdateDto` and other DTOs by removing `IUnique<int>` implementation. Changed return types of `CreateAsync` methods to return corresponding read DTOs. Removed reference to `DigitalData.Core.DTO` in the project file, reflecting a shift in architecture for maintainability.
18 lines
602 B
C#
18 lines
602 B
C#
using DigitalData.Core.Abstraction.Application.Repository;
|
|
using DigitalData.UserManager.Domain.Entities;
|
|
|
|
namespace DigitalData.UserManager.Application.Contracts.Repositories;
|
|
|
|
[Obsolete("Use IRepository")]
|
|
public interface IUserRepository : ICRUDRepository<User, int>
|
|
{
|
|
Task<IEnumerable<User>> ReadByModuleIdAsync(int moduleId);
|
|
|
|
Task<IEnumerable<User>> ReadUnassignedByModuleIdAsync(int moduleId);
|
|
|
|
Task<IEnumerable<User>> ReadByGroupIdAsync(int groupId);
|
|
|
|
Task<IEnumerable<User>> ReadUnassignedByGroupIdAsync(int groupId);
|
|
|
|
Task<User?> ReadByUsernameAsync(string username);
|
|
} |