예제 #1
0
        /// <summary>
        /// Register TechnicalEvaluationRequest.
        /// </summary>
        /// <param name="modelTechnicalEvaluationRequest">modelTechnicalEvaluationRequest Insert Model information TechnicalEvaluationRequest</param>
        /// <returns>Registered activity information.</returns>
        public SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest RegisterTechnicalEvaluationRequest(SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest modelTechnicalEvaluationRequest)
        {
            SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest modelInsert = new SOFTTEK.SCMS.Entity.FA.TechnicalEvaluationRequest();

            return(context.Execute(() =>
            {
                using (dataSource = new FAMDataContext(context.SecurityContext))
                {
                    dataSource.ConnectionString = "SRA";
                    dataSource.DefaultUser = System.Configuration.ConfigurationManager.AppSettings["S_APP_UID"];
                    dataSource.Initialize();
                    var result = dataSource.InsertTechnicalEvaluationRequest(modelTechnicalEvaluationRequest);
                    modelInsert = result;
                }
                return modelInsert;
            }, "Register an TechnicalEvaluationRequest in system"));
        }