public void Update(int id, SaveContractModelMessage message)
        {
            var contractModel = _contractModelRepository.Get(id);

            contractModel.Name    = message.Name;
            contractModel.Summary = message.Summary;
            contractModel.Terms   = message.Terms;

            _contractModelRepository.SaveChanges();
        }
        public void Add(SaveContractModelMessage message)
        {
            var contractModel = new ContractModel();

            contractModel.Name    = message.Name;
            contractModel.Summary = message.Summary;
            contractModel.Terms   = message.Terms;

            _contractModelRepository.Add(contractModel);
            _contractModelRepository.SaveChanges();
        }
 public void Update(int id, SaveContractModelMessage message)
 {
     _contractModelService.Update(id, message);
 }
 public void Add(SaveContractModelMessage message)
 {
     _contractModelService.Add(message);
 }