public async Task <ActionResult <LoadingLocationAdministration> > Delete(int id) { var request = new LoadingLocationsDeleteRequest { Id = id }; return(await _loadingLocationsService.Delete(request).Convert <LoadingLocationAdministration>(this)); }
public async Task <IWrappedResponse> Delete(LoadingLocationsDeleteRequest request) { var cmd = ServiceCommand <LoadingLocationAdministration, Rules.LoadingLocation.Delete.MainRule> .Create(_serviceProvider) .When(new Rules.LoadingLocation.Delete.MainRule(request)) .Then(DeleteAction); return(await cmd.Execute()); }
public MainRule(LoadingLocationsDeleteRequest request, IRule parentRule = null) { // Create Context Context = new ContextModel(request, this); ParentRule = parentRule; }