/// <summary> /// Get all the modelTransferRequest. /// </summary> /// <param name="modelTransferRequest">modelTransferRequest Identifier</param> /// <returns></returns> public List <SOFTTEK.SCMS.Entity.FA.TransferRequest> SearchTransferRequests(SOFTTEK.SCMS.Entity.FA.TransferRequest modelTransferRequest) { List <SOFTTEK.SCMS.Entity.FA.TransferRequest> listTransferRequests = new List <SOFTTEK.SCMS.Entity.FA.TransferRequest>(); return(context.Execute(() => { using (dataSource = new FAMDataContext(context.SecurityContext)) { dataSource.ConnectionString = "SRA"; dataSource.DefaultUser = System.Configuration.ConfigurationManager.AppSettings["S_APP_UID"]; dataSource.Initialize(); var results = dataSource.GetTransferRequests(modelTransferRequest); listTransferRequests = results; } return listTransferRequests; }, "Retrieve the registered TransferRequests in system.")); }