public void AddEditDel_Category(DO_CategoryMaster objcategory, DA_CategoryMaster.CategoryMaster flag)
        {
            SqlConnection conn = new SqlConnection();
            SQLManager    co   = new SQLManager();

            conn = co.GetConnection();

            cmd             = new SqlCommand("Scrl_AddEditDelCategoryMaster", conn);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Add("@FlagNo", SqlDbType.Int).Value                = flag;
            cmd.Parameters.Add("@CategoryId", SqlDbType.Int).Value            = objcategory.CategoryID;
            cmd.Parameters.Add("@CategoryName", SqlDbType.VarChar, 200).Value = objcategory.CategoryName;
            cmd.Parameters.Add("@AddedBy", SqlDbType.VarChar, 200).Value      = objcategory.AddedBy;
            cmd.Parameters.Add("@ModifiedBy", SqlDbType.VarChar, 200).Value   = objcategory.ModifiedBy;
            cmd.ExecuteNonQuery();
            co.CloseConnection(conn);
        }
        public DataTable GetDataTable(DO_CategoryMaster objcategory, DA_CategoryMaster.CategoryMaster flag)
        {
            DataTable     dt   = new DataTable();
            SqlConnection conn = new SqlConnection();
            SQLManager    co   = new SQLManager();

            conn = co.GetConnection();
            SqlDataAdapter da = new SqlDataAdapter();

            da.SelectCommand             = new SqlCommand("Scrl_AddEditDelCategoryMaster", conn);
            da.SelectCommand.CommandType = CommandType.StoredProcedure;
            da.SelectCommand.Parameters.Add("@FlagNo", SqlDbType.Int).Value               = flag;
            da.SelectCommand.Parameters.Add("@CategoryId", SqlDbType.Int).Value           = objcategory.CategoryID;
            da.SelectCommand.Parameters.Add("@AddedBy", SqlDbType.BigInt).Value           = objcategory.AddedBy;
            da.SelectCommand.Parameters.Add("@intPostQuestionId", SqlDbType.BigInt).Value = objcategory.intPostQuestionId;

            da.Fill(dt);
            co.CloseConnection(conn);
            return(dt);
        }