//public DataTable category_WSSelectAll() //{ // DataTable dt = new DataTable(); // try // { // Cls_category_db objCls_category_db = new Cls_category_db(); // dt = objCls_category_db.category_WSSelectAll(); // return dt; // } // catch (Exception ex) // { // ErrHandler.writeError(ex.Message, ex.StackTrace); // return dt; // } //} public TypeMaster SelectById(Int64 cid) { TypeMaster objTypeMaster = new TypeMaster(); try { Cls_Type_db objCls_Type_db = new Cls_Type_db(); objTypeMaster = objCls_Type_db.SelectById(cid); return(objTypeMaster); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(objTypeMaster); } }
public Int64 Update(TypeMaster objTypeMaster) { Int64 result = 0; try { Cls_Type_db objCls_Type_db = new Cls_Type_db(); result = Convert.ToInt64(objCls_Type_db.Update(objTypeMaster)); return(result); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(result); } }