Example #1
0
        public SelectPortalRecordResponse StudentExamPlanner(SelectPortalDataIDRequest objRequest)
        {
            SelectPortalRecordResponse objResponse = null;

            try
            {
                BasePortalLoginDAL objDAL = this.MyDal.GetDalRepository().GetPortalLoginDAL();
                objResponse = (SelectPortalRecordResponse)objDAL.StudentExamPlanner(objRequest);
            }
            catch (Exception ex)
            {
                objResponse = new SelectPortalRecordResponse();
                objResponse.DisplayMessage   = CommonStrings.RetrievalErrorMessage.Replace("{}", "Exam Planner");
                objResponse.ExceptionMessage = ex.Message;
                objResponse.StackTrace       = ex.StackTrace;

                this.SetLogger(this.GetLogger());
                this.WriteToLog(ex.Message + Environment.NewLine + ex.StackTrace);
            }
            return(objResponse);
        }
Example #2
0
        public SelectPortalRecordResponse GetAllIssuedCertificateList(SelectPortalDataIDRequest RequestData)
        {
            SelectPortalRecordResponse ResponseData = null;

            try
            {
                BasePortalLoginDAL objDAL = this.MyDal.GetDalRepository().GetPortalLoginDAL();
                ResponseData = (SelectPortalRecordResponse)objDAL.GetAllIssuedCertificateList(RequestData);
            }
            catch (Exception ex)
            {
                ResponseData = new SelectPortalRecordResponse();
                ResponseData.DisplayMessage   = CommonStrings.RetrievalErrorMessage.Replace("{}", "Certificate History");
                ResponseData.ExceptionMessage = ex.Message;
                ResponseData.StackTrace       = ex.StackTrace;

                this.SetLogger(this.GetLogger());
                this.WriteToLog(ex.Message + Environment.NewLine + ex.StackTrace);
            }
            return(ResponseData);
        }
Example #3
0
        public SelectAllPortalGalleryResponse SelectPortalGalleryData(SelectPortalDataIDRequest objRequest)
        {
            SelectAllPortalGalleryResponse objResponse = null;

            try
            {
                BaseGalleryMasterDAL objDAL = this.MyDal.GetDalRepository().GetGalleryMasterDAL();
                objResponse = (SelectAllPortalGalleryResponse)objDAL.SelectPortalGalleryData(objRequest);
            }
            catch (Exception ex)
            {
                objResponse = new SelectAllPortalGalleryResponse();
                objResponse.DisplayMessage   = CommonStrings.RetrievalErrorMessage.Replace("{}", "Portal User");
                objResponse.ExceptionMessage = ex.Message;
                objResponse.StackTrace       = ex.StackTrace;

                this.SetLogger(this.GetLogger());
                this.WriteToLog(ex.Message + Environment.NewLine + ex.StackTrace);
            }
            return(objResponse);
        }