public EKartonController(DentaCareContext context, IMapper mapper, CreateEKartonValidator validator, IApplicationActor actor, UseCaseExecutor executor) { _context = context; _mapper = mapper; _validator = validator; _actor = actor; _executor = executor; }
public void Post([FromBody] EKartonDto dto, [FromServices] ICreateEKartonCommand command, [FromServices] CreateEKartonValidator validator) { _executor.ExecuteCommand(command, dto); }
public EfCreateEKartonCommand(DentaCareContext context, CreateEKartonValidator validator) { this._context = context; this._validator = validator; }