Ejemplo n.º 1
0
        public void EditLeaseContract(LeaseContract leaseContract)
        {
            var original = leaseContractsRepository.GetById(c => c.ContractId == leaseContract.ContractId);

            leaseContractsRepository.Update(original, leaseContract.AutoMapObject <LeaseContract, DB.LeaseContract>());
        }
Ejemplo n.º 2
0
        public int CreateLeaseContract(LeaseContract leaseContract)
        {
            var res = leaseContractsRepository.Insert(leaseContract.AutoMapObject <LeaseContract, DB.LeaseContract>());

            return(res.ContractId);
        }