Transaction CreateFromTransactionItem(TransactionItem item) { decimal coeff = item.Typ == 1 ? -1m : 1m; Transaction tr = new Transaction { TransactionDate = item.DataOperacji, Amount = item.Kwota * coeff, Currency = "PLN", Details = "GOTOWKA", CounterPartData = item.Notatka, Title = item.Tytul, Owner = item.NazwaKonta, Category = ParseTools.ToUpper(item.Kategoria), SubCategory = ParseTools.ToUpper(item.PodKategoria) }; return(tr); }