示例#1
0
        private Entities.Portfolio.Currency ContractToEntity(Currency contract)
        {
            var entity = new Entities.Portfolio.Currency
            {
                Id     = contract.CurrencyId,
                Image  = contract.Image,
                Name   = contract.Name,
                Symbol = contract.Symbol
            };

            return(entity);
        }
示例#2
0
        private Currency EntityToContract(Entities.Portfolio.Currency entity)
        {
            var contract = new Currency
            {
                CurrencyId = entity.Id,
                Image      = entity.Image,
                Name       = entity.Name,
                Symbol     = entity.Symbol
            };

            return(contract);
        }