public GetPropostaValidation(IPremiumDbContext context) { this.context = context; RuleFor(p => p.Id) .NotEmpty() .MustAsync(PropostaExist).WithMessage("Proposta não encontrada."); }
public GetPropostaHandler(IPremiumDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }
public DeletePropostaSeguradoHandler(IPremiumDbContext context, IMapper mapper) { this._context = context; this._mapper = mapper; }