Esempio n. 1
0
        public async Task <IWrappedResponse> Update(CustomerDivisionUpdateRequest request)
        {
            var cmd = ServiceCommand <CustomerDivision, Rules.CustomerDivision.Update.MainRule>
                      .Create(_serviceProvider)
                      .When(new Rules.CustomerDivision.Update.MainRule(request))
                      .Then(UpdateAction);

            return(await cmd.Execute());
        }
Esempio n. 2
0
 public Task <ActionResult <CustomerDivision> > Patch([FromBody] CustomerDivisionUpdateRequest request)
 {
     return(_divisionsService.Update(request).Convert <CustomerDivision>(this));
 }
Esempio n. 3
0
 public MainRule(CustomerDivisionUpdateRequest request, IRule parentRule = null)
 {
     // Create Context
     Context    = new ContextModel(request, this);
     ParentRule = parentRule;
 }