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);
            }
        }
        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 DataTable SelectAll()
        {
            DataTable dt = new DataTable();

            try
            {
                Cls_color_db objCls_color_db = new Cls_color_db();
                dt = objCls_color_db.SelectAll();
                return(dt);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(dt);
            }
        }
        public bool Delete(Int64 cid)
        {
            bool result = false;

            try
            {
                Cls_color_db objCls_color_db = new Cls_color_db();
                if (objCls_color_db.Delete(cid))
                {
                    result = true;
                }
                else
                {
                    result = false;
                }
            }
            catch (Exception ex)
            {
                result = false;
                ErrHandler.writeError(ex.Message, ex.StackTrace);
            }
            return(result);
        }