public void AddEditDel_SubjCategoryDetails(DO_ProfileDocuments objcategory, DA_ProfileDocuments.DocumenTemp flag)
        {
            SqlConnection conn = new SqlConnection();
            SQLManager    co   = new SQLManager();

            conn = co.GetConnection();

            cmd             = new SqlCommand("Scrl_AddEditDelContextDocument", conn);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Add("@FlagNo", SqlDbType.Int).Value = flag;
            cmd.Parameters.Add("@intSubjectCategoryId", SqlDbType.Int).Value = objcategory.intSubjectCategoryId;
            //  cmd.Parameters.Add("@RegistrationId", SqlDbType.VarChar, 200).Value = objcategory.RegistrationId;
            cmd.Parameters.Add("@AddedBy", SqlDbType.VarChar, 200).Value       = objcategory.AddedBy;
            cmd.Parameters.Add("@intModifiedBy", SqlDbType.VarChar, 200).Value = objcategory.ModifiedBy;
            cmd.ExecuteNonQuery();
            co.CloseConnection(conn);
        }
        public DataTable GetDataTable(DO_ProfileDocuments objcategory, DA_ProfileDocuments.DocumenTemp 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_AddEditDelContextDocument", conn);
            da.SelectCommand.CommandType = CommandType.StoredProcedure;
            da.SelectCommand.Parameters.Add("@FlagNo", SqlDbType.Int).Value = flag;
            da.SelectCommand.Parameters.Add("@DocId", SqlDbType.Int).Value  = objcategory.DocId;
            da.SelectCommand.Parameters.Add("@intSubjectCategoryId", SqlDbType.Int).Value = objcategory.intSubjectCategoryId;
            da.SelectCommand.Parameters.Add("@AddedBy", SqlDbType.BigInt).Value           = objcategory.AddedBy;
            da.SelectCommand.Parameters.Add("@FriendId", SqlDbType.BigInt).Value          = objcategory.FriendId;

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