// Method to Insert student College prefrance
        protected int InsertCollegePrefrance(int userId, int courseId)
        {
            _ObjConsulling = new Consulling();
            int i = 0;

            try
            {
                if (!String.IsNullOrEmpty(UcCollegePrefrance.StudentCollegePrefrance1))
                {
                    i = _ObjConsulling.InsertStudentCollegePrefrance(userId, UcCollegePrefrance.StudentCollegePrefrance1, courseId);
                }
                if (!String.IsNullOrEmpty(UcCollegePrefrance.StudentCollegePrefrance2))
                {
                    i = _ObjConsulling.InsertStudentCollegePrefrance(userId, UcCollegePrefrance.StudentCollegePrefrance2, courseId);
                }
                if (!String.IsNullOrEmpty(UcCollegePrefrance.StudentCollegePrefrance3))
                {
                    i = _ObjConsulling.InsertStudentCollegePrefrance(userId, UcCollegePrefrance.StudentCollegePrefrance3, courseId);
                }
            }
            catch (Exception ex)
            {
                var err = ex.Message;
                if (ex.InnerException != null)
                {
                    err = err + " :: Inner Exception :- " + ex.ToString();
                }
                const string addInfo = "Error while executing InsertUpdateExamApp in StudentCounselling.axpx  :: -> ";
                var          objPub  = new ClsExceptionPublisher();
                objPub.Publish(err, addInfo);
            }
            return(i);
        }
Exemple #2
0
 //Method to Insert The College Details for book your Seat
 protected void InsertUserCollegePrefrance(int userId, string collegeName, int courseId)
 {
     _objConsulling = new Consulling();
     var i = _objConsulling.InsertStudentCollegePrefrance(userId, collegeName, courseId);
 }