public static string DeleteCurrentRow(string RowGuid) { try { DERS_BILGI dersBilgiObj = new DERS_BILGI(); dersBilgiObj.GUID = Convert.ToInt64(RowGuid); DbOperations.Delete(dersBilgiObj); return("success"); } catch (Exception ex) { return(ex.Message); } }
private bool FillParameters() { try { DERS_BILGI DersBilgiObj = new DERS_BILGI(); DersBilgiObj.DERS_ADI = txtAd.Value; DersBilgiObj.SINIF = Convert.ToInt16(slcSinif.Value); DbOperations.Insert(DersBilgiObj); return(true); } catch (Exception ex) { exErr = ex.Message; return(false); } }