Beispiel #1
0
 public static string DeleteCurrentRow(string RowGuid)
 {
     try
     {
         OGR_TEST_REL testRelObj = new OGR_TEST_REL();
         testRelObj.GUID = Convert.ToInt64(RowGuid);
         DbOperations.Delete(testRelObj);
         return("success");
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
 private static bool FillParametersAndInsertDb(string[] lstPostData, ref string errMsg)
 {
     try
     {
         OGR_TEST_REL TestCozmeDurumuObj = new OGR_TEST_REL();
         TestCozmeDurumuObj.TEST_ID       = Convert.ToInt64(lstPostData[0]);
         TestCozmeDurumuObj.OGR_ID        = Convert.ToInt64(lstPostData[1]);
         TestCozmeDurumuObj.DURUM         = Convert.ToInt16(lstPostData[2]);
         TestCozmeDurumuObj.DOGRU_SAYISI  = Convert.ToInt32(lstPostData[3]);
         TestCozmeDurumuObj.YANLIS_SAYISI = Convert.ToInt32(lstPostData[4]);
         TestCozmeDurumuObj.HAFTA_ID      = Convert.ToInt64(lstPostData[5]);
         DbOperations.Insert(TestCozmeDurumuObj);
         return(true);
     }
     catch (Exception ex)
     {
         errMsg = ex.Message;
         if (ex.InnerException != null)
         {
             errMsg += " - inner ex : " + ex.InnerException.Message;
         }
         return(false);
     }
 }