Example #1
0
 .Fold(Failure <Setting>(NotFound(nameof(Setting))))(record => NewSetting(MapMoney(record.GetRecord("money")).GetOrElse(DefaultMoney)));
Example #2
0
 .Fold(Failure <Payment>(NotFound(nameof(Payment))))(record => NewPayment(
                                                         MapMoney(record.GetRecord("cost")),