refactor files
parent
1f99790b97
commit
39f6320063
|
@ -6,8 +6,8 @@
|
|||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<DockerComposeProjectPath>..\docker-compose.dcproj</DockerComposeProjectPath>
|
||||
<AssemblyVersion>1.4.9.4</AssemblyVersion>
|
||||
<FileVersion>1.4.9.4</FileVersion>
|
||||
<AssemblyVersion>1.4.11.5</AssemblyVersion>
|
||||
<FileVersion>1.4.11.5</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using Brizco.Common.Models.Api;
|
||||
using MD.PersianDateTime.Standard;
|
||||
using MD.PersianDateTime.Standard;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Brizco.Api.Controllers;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Core.EntityServices;
|
||||
|
||||
namespace Brizco.Api.Controllers;
|
||||
namespace Brizco.Api.Controllers;
|
||||
|
||||
public class RoleController : ICarterModule
|
||||
{
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
using Brizco.Common.Models.Api;
|
||||
using Brizco.Core.Models.Api;
|
||||
|
||||
namespace Brizco.Api.WebFramework.Bases;
|
||||
namespace Brizco.Api.WebFramework.Bases;
|
||||
|
||||
public class ApiResultFactory
|
||||
{
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
using Carter;
|
||||
using MediatR;
|
||||
using Microsoft.AspNetCore.Routing.Patterns;
|
||||
|
||||
namespace Brizco.Api.WebFramework.Bases;
|
||||
namespace Brizco.Api.WebFramework.Bases;
|
||||
|
||||
|
||||
public class CrudEndpoint<TEntity, TGetAllQuery, TGetOneQuery, TCreateCommand, TUpdateCommand, TDeleteCommand>(
|
||||
|
|
|
@ -80,7 +80,7 @@ public static class ServiceExtensions
|
|||
serviceCollection.AddDbContextFactory<ApplicationContext>(options =>
|
||||
{
|
||||
options.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking);
|
||||
options.UseNpgsql(Configuration.GetConnectionString("PostgresServer"), b => b.MigrationsAssembly("Brizco.Repository"))
|
||||
options.UseNpgsql(Configuration.GetConnectionString("Postgres"), b => b.MigrationsAssembly("Brizco.Repository"))
|
||||
.UseProjectAssembly(typeof(ApplicationUser).Assembly);
|
||||
//options.EnableServiceProviderCaching(true);
|
||||
}).BuildServiceProvider();
|
||||
|
@ -117,7 +117,7 @@ public static class ServiceExtensions
|
|||
{
|
||||
var marten = serviceCollection.AddMarten(options =>
|
||||
{
|
||||
options.Connection(configuration.GetConnectionString("MartenDBServer")!);
|
||||
options.Connection(configuration.GetConnectionString("MartenDB")!);
|
||||
if (environment.IsDevelopment())
|
||||
options.AutoCreateSchemaObjects = AutoCreate.All;
|
||||
});
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Common.Models.Api;
|
||||
using Brizco.Core.Models.Api;
|
||||
using Task = System.Threading.Tasks.Task;
|
||||
using Task = System.Threading.Tasks.Task;
|
||||
|
||||
namespace Brizco.Api.WebFramework.MiddleWares;
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using MD.PersianDateTime.Standard;
|
||||
|
||||
namespace Brizco.Common.Extensions
|
||||
namespace Brizco.Common.Extensions
|
||||
{
|
||||
public static class DateTimeExtensions
|
||||
{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Reflection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Brizco.Common.Extensions
|
||||
{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Reflection;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Brizco.Common.Extensions
|
||||
{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Net;
|
||||
using System.Net;
|
||||
|
||||
namespace Brizco.Common.Models.Api
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Microsoft.VisualBasic.CompilerServices;
|
||||
|
||||
namespace Brizco.Common.Models.Entity;
|
||||
namespace Brizco.Common.Models.Entity;
|
||||
public abstract class ApiEntity : IApiEntity , IEquatable<ApiEntity>
|
||||
{
|
||||
[Key]
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="EntityServices\Handlers\Complexes\" />
|
||||
<Folder Include="Models\Api\" />
|
||||
<Folder Include="QuartzServices\Commands\" />
|
||||
</ItemGroup>
|
||||
|
@ -35,6 +36,7 @@
|
|||
<Using Include="Brizco.Core.CoreServices.Abstracts" />
|
||||
<Using Include="Brizco.Core.CoreServices.ReportServices.Commands" />
|
||||
<Using Include="Brizco.Core.EntityServices.Abstracts" />
|
||||
<Using Include="Brizco.Core.EntityServices.CommandQueries" />
|
||||
<Using Include="Brizco.Core.MartenServices.Abstracts" />
|
||||
<Using Include="Brizco.Core.QuartzServices.Commands" />
|
||||
<Using Include="Brizco.Domain" />
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Users;
|
||||
|
||||
namespace Brizco.Core.CoreServices.Abstracts;
|
||||
namespace Brizco.Core.CoreServices.Abstracts;
|
||||
|
||||
public interface IJwtService : IScopedDependency
|
||||
{
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
using System.Threading;
|
||||
using Brizco.Domain.Entities.Complexes;
|
||||
using Brizco.Domain.Entities.ShiftPlans;
|
||||
using Brizco.Domain.Entities.Users;
|
||||
using NPOI.SS.Formula.Functions;
|
||||
|
||||
namespace Brizco.Core.CoreServices;
|
||||
namespace Brizco.Core.CoreServices;
|
||||
|
||||
public class AccountService(
|
||||
UserManager<ApplicationUser> userManager,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using Microsoft.Extensions.Options;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Text;
|
||||
using Brizco.Domain.Entities.Users;
|
||||
|
||||
namespace Brizco.Core.CoreServices;
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
using Brizco.Domain.Entities.Tasks;
|
||||
using Brizco.Domain.Entities.Tasks;
|
||||
using MD.PersianDateTime.Standard;
|
||||
|
||||
namespace Brizco.Core.CoreServices.ReportServices;
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
namespace Brizco.Core.EntityServices.Abstracts;
|
||||
|
||||
public interface IComplexService : IScopedDependency
|
||||
{
|
||||
Task<ComplexSDto> CreateComplexAsync(string complexName,
|
||||
string complexAddress,
|
||||
string complexSuppPhone,
|
||||
Guid managerUserId,
|
||||
CancellationToken cancellationToken);
|
||||
}
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Users;
|
||||
|
||||
namespace Brizco.Core.EntityServices.Abstracts;
|
||||
namespace Brizco.Core.EntityServices.Abstracts;
|
||||
|
||||
public interface IUserService : IScopedDependency
|
||||
{
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
namespace Brizco.Core.EntityServices.CommandQueries;
|
||||
|
||||
public sealed record CreateComplexCoreCommand(
|
||||
string Name,
|
||||
string Address,
|
||||
string SupportPhone,
|
||||
Guid ManagerUserId ) : IRequest<ComplexSDto>;
|
|
@ -1,19 +1,12 @@
|
|||
using Brizco.Domain.Entities.Users;
|
||||
namespace Brizco.Core.EntityServices.Handlers.Complexes;
|
||||
|
||||
namespace Brizco.Core.EntityServices;
|
||||
|
||||
public class ComplexService(ISender sender, RoleManager<ApplicationRole> roleManager) : IComplexService
|
||||
public class CreateComplexCoreCommandHandler(ISender sender, RoleManager<ApplicationRole> roleManager) : IRequestHandler<CreateComplexCoreCommand , ComplexSDto>
|
||||
{
|
||||
public async Task<ComplexSDto> CreateComplexAsync(string complexName,
|
||||
string complexAddress,
|
||||
string complexSuppPhone,
|
||||
Guid managerUserId,
|
||||
CancellationToken cancellationToken)
|
||||
public async Task<ComplexSDto> Handle(CreateComplexCoreCommand request, CancellationToken cancellationToken)
|
||||
{
|
||||
|
||||
var complex = await sender.Send(new CreateComplexCommand(complexName,
|
||||
complexAddress,
|
||||
complexSuppPhone));
|
||||
var complex = await sender.Send(new CreateComplexCommand(request.Name,
|
||||
request.Address,
|
||||
request.SupportPhone), cancellationToken);
|
||||
|
||||
var managerRole = new ApplicationRole
|
||||
{
|
||||
|
@ -79,7 +72,7 @@ public class ComplexService(ISender sender, RoleManager<ApplicationRole> roleMan
|
|||
await roleManager.AddClaimAsync(staffRole, claim);
|
||||
|
||||
|
||||
var complexUser = await sender.Send(new CreateComplexUserCommand(complex.Id, managerUserId, new List<Guid>{ managerRole.Id }), cancellationToken);
|
||||
var complexUser = await sender.Send(new CreateComplexUserCommand(complex.Id, request.ManagerUserId, new List<Guid> { managerRole.Id }), cancellationToken);
|
||||
|
||||
return complex;
|
||||
}
|
|
@ -1,7 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
using Brizco.Domain.Entities.Users;
|
||||
|
||||
namespace Brizco.Core.EntityServices;
|
||||
namespace Brizco.Core.EntityServices;
|
||||
|
||||
public class UserService(
|
||||
ICurrentUserService currentUserService,
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Brizco.Core.Models.Api;
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Commands;
|
||||
namespace Brizco.Domain.CommandQueries.Commands;
|
||||
|
||||
public sealed record CreateActivityCommand(
|
||||
TaskType Type,
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Commands;
|
||||
namespace Brizco.Domain.CommandQueries.Commands;
|
||||
|
||||
public record CreateShiftPlanCommand(long PlanDate,Guid ShiftId,Guid RoutineId,Guid SupervisionUserId, List<KeyValuePair<Guid,Guid>> UserAndPositionIds)
|
||||
:IRequest<ShiftPlanLDto>;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Commands;
|
||||
namespace Brizco.Domain.CommandQueries.Commands;
|
||||
|
||||
public sealed record CreateTaskCommand(TaskType Type,
|
||||
string Title,
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
|
||||
public sealed record GetActivitiesQuery(int Page = 0 ,
|
||||
long SelectedDate = 0 ,
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
|
||||
public sealed record GetPositionsQuery(int Page = 0) :
|
||||
IRequest<List<PositionSDto>>;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
|
||||
public sealed record GetSectionsQuery(int Page = 0) :
|
||||
IRequest<List<SectionSDto>>;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
|
||||
public sealed record GetShiftPlansQuery(int Page = 0 , long SelectedDate = 0 , DateTimeQueryFilter? DateTimeQueryFilter = DateTimeQueryFilter.CustomDate) :
|
||||
IRequest<List<ShiftPlanSDto>>;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
|
||||
public sealed record GetShiftsQuery(int Page = 0,long SelectedDate = 0) :
|
||||
IRequest<List<ShiftSDto>>;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
namespace Brizco.Domain.CommandQueries.Queries;
|
||||
|
||||
public sealed record GetTasksQuery(int Page = 0 , int? Count = null,Guid? ShiftId = null) :
|
||||
IRequest<List<TaskSDto>>;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
public class ComplexLDto : BaseDto<ComplexLDto,Complex>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
public class PositionLDto : BaseDto<PositionLDto, Position>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
public class SectionLDto : BaseDto<SectionLDto, Section>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
public class ShiftLDto : BaseDto<ShiftLDto,Shift>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
namespace Brizco.Domain.Dtos.LargeDtos;
|
||||
|
||||
public class ShiftPlanLDto : BaseDto<ShiftPlanLDto , ShiftPlan>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Common.Models.Api;
|
||||
|
||||
namespace Brizco.Domain.Dtos.ResponseDto;
|
||||
namespace Brizco.Domain.Dtos.ResponseDto;
|
||||
|
||||
public class ProfileResponseDto
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Users;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ApplicationUserSDto : BaseDto<ApplicationUserSDto,ApplicationUser>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ComplexSDto : BaseDto<ComplexSDto, Complex>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ComplexUserRoleSDto : BaseDto<ComplexUserRoleSDto,ComplexUserRole>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ComplexUserSDto : BaseDto<ComplexUserSDto,ComplexUser>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class PositionSDto : BaseDto<PositionSDto, Position>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Routines;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class RoutineSDto : BaseDto<RoutineSDto,Routine>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Complexes;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class SectionSDto : BaseDto<SectionSDto, Section>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ShiftDaySDto : BaseDto<ShiftDaySDto,ShiftDay>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ShiftPlanSDto : BaseDto<ShiftPlanSDto,ShiftPlan>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.ShiftPlans;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ShiftPlanUserSDto : BaseDto<ShiftPlanUserSDto,ShiftPlanUser>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
|
||||
public class ShiftRoutineSDto : BaseDto<ShiftRoutineSDto, ShiftRoutine>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
namespace Brizco.Domain.Dtos.SmallDtos;
|
||||
public class ShiftSDto : BaseDto<ShiftSDto,Shift>
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
using Brizco.Domain.Entities.Users;
|
||||
using Task = Brizco.Domain.Entities.Tasks.Task;
|
||||
using Task = Brizco.Domain.Entities.Tasks.Task;
|
||||
|
||||
namespace Brizco.Domain.Entities.Complexes;
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Users;
|
||||
|
||||
namespace Brizco.Domain.Entities.Complexes;
|
||||
namespace Brizco.Domain.Entities.Complexes;
|
||||
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
||||
[GenerateMapper]
|
||||
public partial class ComplexUser : ApiEntity
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Users;
|
||||
|
||||
namespace Brizco.Domain.Entities.Complexes;
|
||||
namespace Brizco.Domain.Entities.Complexes;
|
||||
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
||||
[GenerateMapper]
|
||||
public class ComplexUserRole : ApiEntity
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
|
||||
namespace Brizco.Domain.Entities.Routines;
|
||||
namespace Brizco.Domain.Entities.Routines;
|
||||
|
||||
public partial class Routine
|
||||
{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using Brizco.Domain.Entities.Shifts;
|
||||
using Brizco.Domain.Entities.Tasks;
|
||||
using Brizco.Domain.Entities.Tasks;
|
||||
|
||||
namespace Brizco.Domain.Entities.Routines;
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Routines;
|
||||
|
||||
namespace Brizco.Domain.Entities.Shifts;
|
||||
namespace Brizco.Domain.Entities.Shifts;
|
||||
|
||||
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
||||
[GenerateMapper]
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.Entities.Routines;
|
||||
|
||||
namespace Brizco.Domain.Entities.Tasks;
|
||||
namespace Brizco.Domain.Entities.Tasks;
|
||||
|
||||
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
||||
[GenerateMapper]
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
using Brizco.Domain.MartenEntities.Notifications;
|
||||
|
||||
namespace Brizco.Repository.MartenHandlers.Notifications;
|
||||
namespace Brizco.Repository.MartenHandlers.Notifications;
|
||||
|
||||
public class ReadNotificationCommandHandler(IMartenRepositoryWrapper martenRepositoryWrapper, ICurrentUserService currentUserService) : IRequestHandler<ReadNotificationCommand, bool>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue