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); }
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); }