public void Handle(RetriggerTermsAndConditions command) { var company = _repository.Get(command.CompanyId); company.RetriggerTermsAndConditions(); _repository.Save(company, command.Id.ToString()); }
public object Post(RetriggerTermsAndConditionsRequest request) { var command = new RetriggerTermsAndConditions { CompanyId = AppConstants.CompanyId }; _commandBus.Send(command); return(new HttpResult(HttpStatusCode.OK)); }