//Create wird zu einem späteren Zeitpunkt implemetiert public async Task <IWrappedResponse> Create(PartnersCreateRequest request) { var cmd = ServiceCommand <Partner, Rules.Partner.Create.MainRule> .Create(_serviceProvider) .When(new Rules.Partner.Create.MainRule(request)) .Then(CreateAction); return(await cmd.Execute()); }
public async Task <ActionResult <Partner> > Post([FromBody] PartnersCreateRequest request) { return(await _partnersService.Create(request).Convert <Partner>(this)); }
public MainRule(PartnersCreateRequest request, IRule parentRule = null) { // Create Context Context = new ContextModel(request, this); ParentRule = parentRule; }