Ejemplo n.º 1
0
        public void Handle(RetriggerTermsAndConditions command)
        {
            var company = _repository.Get(command.CompanyId);

            company.RetriggerTermsAndConditions();

            _repository.Save(company, command.Id.ToString());
        }
Ejemplo n.º 2
0
        public object Post(RetriggerTermsAndConditionsRequest request)
        {
            var command = new RetriggerTermsAndConditions
            {
                CompanyId = AppConstants.CompanyId
            };

            _commandBus.Send(command);

            return(new HttpResult(HttpStatusCode.OK));
        }