public ActionResult Link_SubjectReport(eventsubjectreport objreport) { actionResult = new ActionResult(); try { actionResult.dtResult = EventDL.Link_SubjectReport(objreport); if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0) { actionResult.IsSuccess = true; } } catch (Exception ex) { } return(actionResult); }
public DataTable Link_SubjectReport(eventsubjectreport objreport) { dtContainer = new DataTable(); try { MyParameter[] myParams = { new MyParameter("@EventID", objreport.eventid), new MyParameter("@SubjectID", objreport.subjectid), new MyParameter("@IncidentID", objreport.incidentid), }; Common.Set_Procedures("EventSubjectReportLink_IU"); Common.Set_ParameterLength(myParams.Length); Common.Set_Parameters(myParams); dtContainer = Common.Execute_Procedures_LoadData(); } catch (Exception ex) { throw ex; } return(dtContainer); }