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()); }
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)); }