public DataTable category_WSSelectById(Int64 cid) { DataTable dt = new DataTable(); try { Cls_category_db objCls_category_db = new Cls_category_db(); dt = objCls_category_db.category_WSSelectById(cid); return(dt); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(dt); } }
public category SelectById(Int64 cid) { category objcategory = new category(); try { Cls_category_db objCls_category_db = new Cls_category_db(); objcategory = objCls_category_db.SelectById(cid); return(objcategory); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(objcategory); } }
public DataTable SelectAllAdmin() { DataTable dt = new DataTable(); try { Cls_category_db objCls_category_db = new Cls_category_db(); dt = objCls_category_db.SelectAllAdmin(); return(dt); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(dt); } }
public bool Category_IsActive(Int64 CategoryId, Boolean IsActive) { try { Cls_category_db objCls_category_db = new Cls_category_db(); if (objCls_category_db.Category_IsActive(CategoryId, IsActive)) { return(true); } return(false); } catch (Exception ex) { throw new Exception(ex.Message); } }
public Int64 Update(category objcategory) { Int64 result = 0; try { Cls_category_db objCls_category_db = new Cls_category_db(); result = Convert.ToInt64(objCls_category_db.Update(objcategory)); return(result); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(result); } }
public bool Delete(Int64 cid) { bool result = false; try { Cls_category_db objCls_category_db = new Cls_category_db(); if (objCls_category_db.Delete(cid)) { result = true; } else { result = false; } } catch (Exception ex) { result = false; ErrHandler.writeError(ex.Message, ex.StackTrace); } return(result); }