public static string DeleteCurrentRow(string RowGuid)
 {
     try
     {
         DERS_KONU_BILGI konuBilgiObj = new DERS_KONU_BILGI();
         konuBilgiObj.GUID = Convert.ToInt64(RowGuid);
         DbOperations.Delete(konuBilgiObj);
         return("success");
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }
Exemple #2
0
        private static bool FillParametersAndInsertDb(string[] lstPostData, ref string errMsg)
        {
            try
            {
                DERS_KONU_BILGI DersKonuBilgiObj = new DERS_KONU_BILGI();
                DersKonuBilgiObj.KONU    = lstPostData[0];
                DersKonuBilgiObj.DERS_ID = Convert.ToInt64(lstPostData[1]);

                DbOperations.Insert(DersKonuBilgiObj);
                return(true);
            }
            catch (Exception ex)
            {
                errMsg = ex.Message;
                return(false);
            }
        }