Beispiel #1
0
        public SelectAllPortalUserResponse SelectAll(SelectAllPortalUserRequest objRequest)
        {
            SelectAllPortalUserResponse objResponse = null;

            try
            {
                BasePortalLoginDAL objDAL = this.MyDal.GetDalRepository().GetPortalLoginDAL();
                objResponse = (SelectAllPortalUserResponse)objDAL.SelectAll(objRequest);
            }
            catch (Exception ex)
            {
                objResponse = new SelectAllPortalUserResponse();
                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);
        }
Beispiel #2
0
        public SelectPortalRecordResponse GetPortalUserList(SelectAllPortalUserRequest RequestData)
        {
            SelectPortalRecordResponse ResponseData = null;

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

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