Esempio n. 1
0
        /// <summary>
        /// Get all the modelNoveltyRequest.
        /// </summary>
        /// <param name="modelNoveltyRequest">modelNoveltyRequest Identifier</param>
        /// <returns></returns>
        public List <SOFTTEK.SCMS.Entity.FA.NoveltyRequest> SearchNoveltyRequests(SOFTTEK.SCMS.Entity.FA.NoveltyRequest modelNoveltyRequest)
        {
            List <SOFTTEK.SCMS.Entity.FA.NoveltyRequest> listNoveltyRequests = new List <SOFTTEK.SCMS.Entity.FA.NoveltyRequest>();

            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.GetNoveltyRequests(modelNoveltyRequest);
                    listNoveltyRequests = results;
                }

                return listNoveltyRequests;
            }, "Retrieve the registered NoveltyRequests in system."));
        }