diff --git a/MBS_COMMAND.Application/UserCases/Commands/Schedules/CreateScheduleCommandHandler.cs b/MBS_COMMAND.Application/UserCases/Commands/Schedules/CreateScheduleCommandHandler.cs index a67bd7e..423ffd6 100644 --- a/MBS_COMMAND.Application/UserCases/Commands/Schedules/CreateScheduleCommandHandler.cs +++ b/MBS_COMMAND.Application/UserCases/Commands/Schedules/CreateScheduleCommandHandler.cs @@ -51,10 +51,6 @@ public async Task Handle(Command.CreateScheduleCommand request, Cancella { return Result.Failure(new Error("404", "Slot is not exist !")); } - if(group.MentorId==slot.MentorId) - { - return Result.Failure(new Error("500", "Cannot book your group mentor's slot !")); - } if (slot.IsBook) { return Result.Failure(new Error("403", "Slot is booked !")); @@ -72,7 +68,7 @@ public async Task Handle(Command.CreateScheduleCommand request, Cancella var end = TimeOnly.Parse(request.EndTime); - TimeZoneInfo vietnamTimeZone = TimeZoneInfo.FindSystemTimeZoneById("SE Asia Standard Time"); + var vietnamTimeZone = TimeZoneInfo.FindSystemTimeZoneById("SE Asia Standard Time"); var now = TimeZoneInfo.ConvertTime(DateTimeOffset.UtcNow, vietnamTimeZone); var endTimeDatetime = slot.Date.ToDateTime(slot.EndTime);