scm-api / src /SCM.Application /Controle /ItemControleMappings.cs
rafaeldavila's picture
Deploy SCM API (.NET 8) - Docker Space
de8b914 verified
Raw History Blame Contribute Delete
498 Bytes
using SCM.Application.Controle.Dtos;
using SCM.Domain.Controle;
namespace SCM.Application.Controle;
internal static class ItemControleMappings
{
public static ItemControleResponse ToResponse(this ItemControle ic, int qtdItensProgramados) => new(
ic.Id,
ic.Codigo,
ic.Descricao,
ic.ObraId,
qtdItensProgramados,
ic.QuantidadeMedicao,
ic.EstadoAvanco.ToString(),
ic.GitecPendencia.ToString(),
ic.RevalidacaoPendente);
}