public async Task <IList <string> > FindExistingMonitorCodesAsync(IList <MID> mids) { IList <string> midList = new List <string>(); var monitorCodes = await dropdownService.GetDropdown("MC"); foreach (var mid in mids) { MaintenanceDetails monitorDesc = monitorCodes.MaintenanceDetails.SingleOrDefault(m => m.Code == mid.monitorCode); midList.Add(monitorDesc.Value); } return(midList); }
public void DeleteDetails(MaintenanceMaster maintenanceMaster, MaintenanceDetails maintenanceDetails) { throw new NotImplementedException(); }
public async Task InsertDetailsAsync(MaintenanceMaster maintenanceMaster, MaintenanceDetails maintenanceDetails) { await Task.FromResult(maintenanceMaster); }
public async Task <IList <string> > FindDefaultMonitorCodesAsync() { IList <string> midList = new List <string>(); var monitorCodes = await dropdownService.GetDropdown("MC"); ICollection <MID> defaultMIDs = new Collection <MID>(); defaultMIDs.Add(new MID { currencyPhp = true, monitorCode = "OTC", cardPlans = "MCVCJCACCC - 1", majorPurchase = false, serviceFeeRate = 99.99M, status = 1, }); defaultMIDs.Add(new MID { currencyPhp = true, monitorCode = "REGULAR INSTALLMENT", cardPlans = "MCVCJCACCC - 1", majorPurchase = true, serviceFeeRate = 0.00M, status = 1, }); defaultMIDs.Add(new MID { currencyPhp = true, monitorCode = "Installment Zero", cardPlans = "MCVCJCACCC - 1", majorPurchase = true, serviceFeeRate = 0.00M, status = 1, }); defaultMIDs.Add(new MID { currencyPhp = true, monitorCode = "BNPL Reg", cardPlans = "MCVCJCACCC - 1", majorPurchase = true, serviceFeeRate = 0.00M, status = 1, }); defaultMIDs.Add(new MID { currencyPhp = true, monitorCode = "0% BNPL", cardPlans = "MCVCJCACCC - 1", majorPurchase = true, serviceFeeRate = 0.00M, status = 1, }); foreach (var mid in defaultMIDs) { MaintenanceDetails monitorDesc = monitorCodes.MaintenanceDetails.SingleOrDefault(m => m.Code == mid.monitorCode); midList.Add(monitorDesc.Value); } return(midList); }