Skip to content

Commit

Permalink
fix: some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rivinger7 committed Jul 21, 2024
1 parent e2cc208 commit 78bc008
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public async Task<IActionResult> ChatList()
Timestamp = m.Timestamp,
SenderId = m.SenderId,
ReceiverId = m.ReceiverId,
SenderName = m.Sender.FirstName ?? "Ẩn" + " " + m.Sender.LastName ?? "Danh",
ReceiverName = m.Receiver.FirstName ?? "Ẩn" + " " + m.Receiver.LastName ?? "Danh"
SenderName = m.Sender.FirstName + " " + m.Sender.LastName,
ReceiverName = m.Receiver.FirstName + " " + m.Receiver.LastName
})
.GroupBy(m => m.SenderId == dentistID ? m.ReceiverId : m.SenderId)
.Select(g => g.OrderByDescending(m => m.Timestamp).FirstOrDefault())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,7 @@ public async Task<IActionResult> CancelAppointment(int appointmentID, int schedu
if (appointment.AppointmentStatus == "Đã Hủy")
{
appointment.Schedule.ScheduleStatus = "Đã Hủy";
appointment.Description = $"Hủy khám từ bệnh nhân lúc {Util.GetUtcPlus7Time()}";
await _context.SaveChangesAsync();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<a asp-area="" asp-controller="news" asp-action="index">Tin Tức</a>
</li>
<li>
<a asp-controller="contact" asp-action="index">Liên hệ</a>
<a asp-controller="contact" asp-action="index">Hợp tác</a>
</li>
</ul>

Expand Down

0 comments on commit 78bc008

Please sign in to comment.