public SelectAllBoardMasterResponse SelectAll(SelectAllCommonRequest objRequest) { SelectAllBoardMasterResponse objResponse = null; try { BaseBoardMasterDAL objDAL = this.MyDal.GetDalRepository().GetBoardMasterDAL(); objResponse = (SelectAllBoardMasterResponse)objDAL.SelectAll(objRequest); } catch (Exception ex) { objResponse = new SelectAllBoardMasterResponse(); objResponse.DisplayMessage = CommonStrings.RetrievalErrorMessage.Replace("{}", "Board Master"); objResponse.ExceptionMessage = ex.Message; objResponse.StackTrace = ex.StackTrace; this.SetLogger(this.GetLogger()); this.WriteToLog(ex.Message + Environment.NewLine + ex.StackTrace); } return(objResponse); }
public UpdateOperationResponse UpdateRecord(SaveBoardMasterRequest objRequest) { UpdateOperationResponse objResponse = null; try { BaseBoardMasterDAL objDAL = this.MyDal.GetDalRepository().GetBoardMasterDAL(); objResponse = (UpdateOperationResponse)objDAL.UpdateRecord(objRequest); } catch (Exception ex) { objResponse = new UpdateOperationResponse(); objResponse.DisplayMessage = CommonStrings.UpdateErrorMessage.Replace("{}", "Board Master"); objResponse.ExceptionMessage = ex.Message; objResponse.StackTrace = ex.StackTrace; this.SetLogger(this.GetLogger()); this.WriteToLog(ex.Message + Environment.NewLine + ex.StackTrace); } return(objResponse); }