Beispiel #1
0
        public LoanTypes ImportLoanTypes(string file)
        {
            var ser = new GenericSerializer();
            var lts = ser.DeserializeFile <LoanTypesSerializable>(file);

            _loanTypes = new LoanTypes();
            foreach (var type in lts.LoanTypes)
            {
                _loanTypes.Types.Add(new LoanType(type.Id, type.TypeName));
            }

            return(_loanTypes);
        }
Beispiel #2
0
 public LoanTypeService()
 {
     _loanTypes = new LoanTypes();
 }
Beispiel #3
0
 public void SaveLoanTypes(LoanTypes loanTypes)
 {
     _loanTypes = loanTypes;
 }