public async Task <ActionResult <CustomerDivisionDocumentSetting> > Delete([FromForm] int key)
        {
            var request = new CustomerDivisionDocumentSettingDeleteRequest {
                Id = key
            };

            return(await _divisionDocumentSettingsService.Delete(request).Convert <CustomerDivisionDocumentSetting>(this));
        }
Esempio n. 2
0
        public async Task <IWrappedResponse> Delete(CustomerDivisionDocumentSettingDeleteRequest request)
        {
            var cmd = ServiceCommand <CustomerDivisionDocumentSetting, Rules.DivisionDocumentSetting.Delete.MainRule>
                      .Create(_serviceProvider)
                      .When(new Rules.DivisionDocumentSetting.Delete.MainRule(request))
                      .Then(DeleteAction);

            return(await cmd.Execute());
        }
Esempio n. 3
0
 public MainRule(CustomerDivisionDocumentSettingDeleteRequest request, IRule parentRule = null)
 {
     // Create Context
     Context    = new ContextModel(request, this);
     ParentRule = parentRule;
 }