public DataTable newsupdate_WSSelectAll() { DataTable dt = new DataTable(); try { Cls_newsupdate_db objCls_newsupdate_db = new Cls_newsupdate_db(); dt = objCls_newsupdate_db.newsupdate_WSSelectAll(); return(dt); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(dt); } }
public Int64 Update(newsupdate objnewsupdate) { Int64 result = 0; try { Cls_newsupdate_db objCls_newsupdate_db = new Cls_newsupdate_db(); result = Convert.ToInt64(objCls_newsupdate_db.Update(objnewsupdate)); return(result); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(result); } }
public newsupdate SelectById(Int64 newsupdateid) { newsupdate objnewsupdate = new newsupdate(); try { Cls_newsupdate_db objCls_newsupdate_db = new Cls_newsupdate_db(); objnewsupdate = objCls_newsupdate_db.SelectById(newsupdateid); return(objnewsupdate); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(objnewsupdate); } }
public bool Delete(Int64 newsupdateid) { try { Cls_newsupdate_db objCls_newsupdate_db = new Cls_newsupdate_db(); if (objCls_newsupdate_db.Delete(newsupdateid)) { return(true); } return(false); } catch (Exception ex) { throw new Exception(ex.Message); } }