Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsonax committed Apr 28, 2024
1 parent 7e53d04 commit b4ab5c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CleanAspCore/Features/Employees/Endpoints/GetEmployeeById.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace CleanAspCore.Features.Employees.Endpoints;

public sealed record EmployeeDto(string FirstName, string LastName, string Email, string Gender, Guid DepartmentId, Guid JobId);
public sealed record EmployeeDto(Guid Id, string FirstName, string LastName, string Email, string Gender, Guid DepartmentId, Guid JobId);

internal static class GetEmployeeById
{
Expand All @@ -19,6 +19,7 @@ internal static async Task<JsonHttpResult<EmployeeDto>> Handle(Guid id, HrContex
}

private static EmployeeDto ToDto(this Employee employee) => new(
employee.Id,
employee.FirstName,
employee.LastName,
employee.Email.ToString(),
Expand Down

0 comments on commit b4ab5c8

Please sign in to comment.