public List <QualificationSupplierData> GetQualificationSupplierDataList() { List <QualificationSupplierData> qualificationSupplierData = new List <QualificationSupplierData>(); QualificationSupplierData supplierData = new QualificationSupplierData(1, 1, 7, 1, 1, 1, 1, 1, "1010000154", 1, 1, DateTime.Now, 1, ""); supplierData.QualificationConfigurationAttachments.Add( new QualificationConfigurationAttachment(1, "File Name", "Idd")); QualificationItem qualificationItem = GetQualificationItem(); PropertyInfo qualificationItemInfo = supplierData.GetType().GetProperty("QualificationItem"); qualificationItemInfo.SetValue(supplierData, qualificationItem); Tender tender = GetQualificationWithConfiguration(); PropertyInfo tenderInfo = supplierData.GetType().GetProperty("Tender"); tenderInfo.SetValue(supplierData, tender); QualificationConfiguration qualificationConfiguration = GetQualificationConfiguration(7); PropertyInfo qualificationConfifrationnfo = supplierData.GetType().GetProperty("QualificationConfiguration"); qualificationConfifrationnfo.SetValue(supplierData, qualificationConfiguration); qualificationSupplierData.Add(supplierData); return(qualificationSupplierData); }
public void DeactiveQualificationSupplierData(QualificationSupplierData qualificationSupplierData) { _context.QualificationSupplierData.Update(qualificationSupplierData); }