public Int64 Update(ColorMaster objcategory) { Int64 result = 0; try { Cls_color_db objCls_color_db = new Cls_color_db(); result = Convert.ToInt64(objCls_color_db.Update(objcategory)); return(result); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(result); } }
public ColorMaster SelectById(Int64 cid) { ColorMaster objcategory = new ColorMaster(); try { Cls_color_db objCls_color_db = new Cls_color_db(); objcategory = objCls_color_db.SelectById(cid); return(objcategory); } catch (Exception ex) { ErrHandler.writeError(ex.Message, ex.StackTrace); return(objcategory); } }