Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PhucNghi176 committed Nov 7, 2024
1 parent b1e1885 commit e9e584f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ public async Task<Result> 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 !"));
Expand All @@ -72,7 +68,7 @@ public async Task<Result> 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);

Expand Down

0 comments on commit e9e584f

Please sign in to comment.