public ActionResult EventPicture_LoadByEventID(PictureBase EventBase) { actionResult = new ActionResult(); try { actionResult.dtResult = EventDL.EventPicture_LoadByEventID(EventBase); if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0) { actionResult.IsSuccess = true; } } catch (Exception ex) { } return(actionResult); }
public ActionResult EventPicture_DeleteById(PictureBase EventBase) { try { actionResult.dtResult = EventDL.EventPicture_DeleteById(EventBase); if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0) { actionResult.IsSuccess = true; } } catch (Exception ex) { ErrorReporting.ActionLayerError(ex); } return(actionResult); }
public DataTable EventPicture_DeleteById(PictureBase EventBase) { dtContainer = new DataTable(); try { MyParameter[] myParams = { new MyParameter("@EventMediaID", EventBase.EventMediaID) }; Common.Set_Procedures("EventPicture_DeleteById"); Common.Set_ParameterLength(myParams.Length); Common.Set_Parameters(myParams); dtContainer = Common.Execute_Procedures_LoadData(); } catch (Exception ex) { ErrorReporting.DataLayerError(ex); } return(dtContainer); }
public DataTable EventPicture_LoadByEventID(PictureBase EventBase) { dtContainer = new DataTable(); try { MyParameter[] myParams = { new MyParameter("@EventID", EventBase.EventID) }; Common.Set_Procedures("EventPicture_LoadByEventID"); Common.Set_ParameterLength(myParams.Length); Common.Set_Parameters(myParams); dtContainer = Common.Execute_Procedures_LoadData(); } catch (Exception ex) { throw ex; } return(dtContainer); }
public DataTable EventMedia_IU(PictureBase PictureBase) { dtContainer = new DataTable(); try { MyParameter[] myParams = { new MyParameter("@EventMediaID", PictureBase.EventMediaID), new MyParameter("@EventID", PictureBase.EventID), new MyParameter("@Details", PictureBase.Details), new MyParameter("@BanTypeTable", PictureBase.BanTypeTable), new MyParameter("@MediaID", PictureBase.Media) }; Common.Set_Procedures("EventMedia_IU"); Common.Set_ParameterLength(myParams.Length); Common.Set_Parameters(myParams); dtContainer = Common.Execute_Procedures_LoadData(); } catch (Exception ex) { throw ex; } return(dtContainer); }