예제 #1
0
 public EKartonController(DentaCareContext context,
                          IMapper mapper,
                          CreateEKartonValidator validator,
                          IApplicationActor actor,
                          UseCaseExecutor executor)
 {
     _context   = context;
     _mapper    = mapper;
     _validator = validator;
     _actor     = actor;
     _executor  = executor;
 }
예제 #2
0
 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;
 }