using Contracts.DTO; using Infrastructure.Models; namespace Infrastructure.Support.Mappers; public static class SpendingGroupMapper { public static SpendingGroupDto ToDto(this SpendingGroup group) => new() { Id = group.Id, Name = group.Name, UserId = group.UserId }; public static SpendingGroup ToModel(this SpendingGroupDto group) => new() { Id = group.Id, Name = group.Name, UserId = group.UserId }; }