public async Task <IWrappedResponse> Update(LoadingLocationsUpdateRequest request)
        {
            var cmd = ServiceCommand <LoadingLocationAdministration, Rules.LoadingLocation.Update.MainRule>
                      .Create(_serviceProvider)
                      .When(new Rules.LoadingLocation.Update.MainRule(request))
                      .Then(UpdateAction);

            return(await cmd.Execute());
        }
Exemplo n.º 2
0
 public MainRule(LoadingLocationsUpdateRequest request, IRule parentRule = null)
 {
     // Create Context
     Context    = new ContextModel(request, this);
     ParentRule = parentRule;
 }
 public async Task <ActionResult <LoadingLocationAdministration> > Patch([FromBody] LoadingLocationsUpdateRequest request)
 {
     return(await _loadingLocationsService.Update(request).Convert <LoadingLocationAdministration>(this));
 }