Exemple #1
0
 public DataTable SubjectEmployeePicture_Insert(CommonPictureVideosBase pictureVideoBase)
 {
     dtContainer = new DataTable();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@ID",          pictureVideoBase.ID),
             new MyParameter("@IncidentID",  pictureVideoBase.IncidentID),
             new MyParameter("@MediaID",     pictureVideoBase.MediaID),
             new MyParameter("@QuestionID",  pictureVideoBase.QuestionID),
             new MyParameter("@Observation", pictureVideoBase.Observation),
             new MyParameter("@MediaType",   pictureVideoBase.MediaType),
             new MyParameter("@Type",        pictureVideoBase.Type)
         };
         Common.Set_Procedures("SubjectEmployeePicture_Insert");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         ErrorReporting.DataLayerError(ex);
     }
     return(dtContainer);
 }
Exemple #2
0
 public ActionResult SubjectEmployeePicture_Insert(CommonPictureVideosBase pictureVideoBase)
 {
     try
     {
         actionResult.dtResult = mediatDL.SubjectEmployeePicture_Insert(pictureVideoBase);
         if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0)
         {
             //actionResult.RowsAffected = Convert.ToInt32(actionResult.dtResult.Rows[0]["result"]);
             actionResult.IsSuccess = true;
         }
     }
     catch (Exception ex)
     {
         ErrorReporting.ActionLayerError(ex);
     }
     return(actionResult);
 }