public ActionResult Link_GeneralReport(eventgeneralreport objreport) { actionResult = new ActionResult(); try { actionResult.dtResult = EventDL.Link_GeneralReport(objreport); if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0) { actionResult.IsSuccess = true; } } catch (Exception ex) { } return(actionResult); }
public DataTable Link_GeneralReport(eventgeneralreport objreport) { dtContainer = new DataTable(); try { MyParameter[] myParams = { new MyParameter("@EventID", objreport.eventid), new MyParameter("@ReportID", objreport.reportid), }; Common.Set_Procedures("EventGeneralReportLink_IU"); Common.Set_ParameterLength(myParams.Length); Common.Set_Parameters(myParams); dtContainer = Common.Execute_Procedures_LoadData(); } catch (Exception ex) { throw ex; } return(dtContainer); }