using System.Linq.Expressions;
using Monitoring.Core.Domain.FireDepartmentManagement;

namespace Monitoring.Features.FireDepartments;

public record FireDepartmentModel(
    Guid Id,
    string Name,
    string Address
)
{
    public static readonly Expression<Func<FireDepartment, FireDepartmentModel>> FromEntity = e => new FireDepartmentModel(
        e.Id.Value,
        e.Name.Value,
        e.Address.Value
    );
}
