Spaces:
Runtime error
Runtime error
File size: 394 Bytes
de8b914 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | using SCM.Application.Projects.Dtos;
using SCM.Domain.Projects;
namespace SCM.Application.Projects;
internal static class ProjectMappings
{
public static ProjectResponse ToResponse(this Project p) => new(
p.Id,
p.Code,
p.Name,
p.Description,
p.StartDate,
p.EndDate,
p.Status.ToString(),
p.CreatedAt,
p.UpdatedAt);
}
|